Changeset 60358
- Timestamp:
- 06/27/2025 03:07:29 PM (3 months ago)
- Location:
- trunk/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php
r60069 r60358 38 38 'archived' => array( 'site-archived', __( 'Archived' ) ), 39 39 'spam' => array( 'site-spammed', _x( 'Spam', 'site' ) ), 40 'deleted' => array( 'site-deleted', __( ' Deleted' ) ),40 'deleted' => array( 'site-deleted', __( 'Flagged for Deletion' ) ), 41 41 'mature' => array( 'site-mature', __( 'Mature' ) ), 42 42 ); … … 257 257 /* translators: %s: Number of sites. */ 258 258 'deleted' => _n_noop( 259 ' Deleted<span class="count">(%s)</span>',260 ' Deleted<span class="count">(%s)</span>'259 'Flagged for Deletion <span class="count">(%s)</span>', 260 'Flagged for Deletion <span class="count">(%s)</span>' 261 261 ), 262 262 ); … … 668 668 * 669 669 * @param string[] $site_states An array of site states. Default 'Main', 670 * 'Archived', 'Mature', 'Spam', ' Deleted'.670 * 'Archived', 'Mature', 'Spam', 'Flagged for Deletion'. 671 671 * @param WP_Site $site The current site object. 672 672 */ … … 759 759 ) 760 760 ), 761 _x( ' Activate', 'site' )761 _x( 'Remove Deletion Flag', 'site' ) 762 762 ); 763 763 } else { … … 770 770 ) 771 771 ), 772 __( ' Deactivate' )772 __( 'Flag for Deletion' ) 773 773 ); 774 774 } … … 831 831 ) 832 832 ), 833 __( 'Delete ' )833 __( 'Delete Permanently' ) 834 834 ); 835 835 } … … 845 845 * Filters the action links displayed for each site in the Sites list table. 846 846 * 847 * The 'Edit', 'Dashboard', 'Delete ', and 'Visit' links are displayed by847 * The 'Edit', 'Dashboard', 'Delete Permanently', and 'Visit' links are displayed by 848 848 * default for each site. The site's status determines whether to show the 849 * ' Activate' or 'Deactivate' link, 'Unarchive' or 'Archive' links, and849 * 'Remove Deletion Flag' or 'Flag for Deletion' link, 'Unarchive' or 'Archive' links, and 850 850 * 'Not Spam' or 'Spam' link for each site. 851 851 * -
trunk/src/wp-admin/menu.php
r59905 r60358 379 379 $submenu['tools.php'][25] = array( __( 'Export Personal Data' ), 'export_others_personal_data', 'export-personal-data.php' ); 380 380 $submenu['tools.php'][30] = array( __( 'Erase Personal Data' ), 'erase_others_personal_data', 'erase-personal-data.php' ); 381 if ( is_multisite() && ! is_main_site() ) {381 if ( is_multisite() && ! is_main_site() && '1' !== get_site()->deleted ) { 382 382 $submenu['tools.php'][35] = array( __( 'Delete Site' ), 'delete_site', 'ms-delete-site.php' ); 383 383 } -
trunk/src/wp-admin/network/site-info.php
r58097 r60358 201 201 $attribute_fields['archived'] = __( 'Archived' ); 202 202 $attribute_fields['spam'] = _x( 'Spam', 'site' ); 203 $attribute_fields['deleted'] = __( ' Deleted' );203 $attribute_fields['deleted'] = __( 'Flagged for Deletion' ); 204 204 } 205 205 $attribute_fields['mature'] = __( 'Mature' ); -
trunk/src/wp-admin/network/sites.php
r59784 r60358 34 34 '<ul><li>' . __( 'An Edit link to a separate Edit Site screen.' ) . '</li>' . 35 35 '<li>' . __( 'Dashboard leads to the Dashboard for that site.' ) . '</li>' . 36 '<li>' . __( ' Deactivate, Archive, and Spam which lead to confirmation screens. These actions can be reversed later.' ) . '</li>' .37 '<li>' . __( 'Delete which is a permanent action after the confirmation screen.' ) . '</li>' .36 '<li>' . __( 'Flag for Deletion, Archive, and Spam which lead to confirmation screens. These actions can be reversed later.' ) . '</li>' . 37 '<li>' . __( 'Delete Permanently which is a permanent action after the confirmation screen.' ) . '</li>' . 38 38 '<li>' . __( 'Visit to go to the front-end of the live site.' ) . '</li></ul>', 39 39 ) … … 62 62 $manage_actions = array( 63 63 /* translators: %s: Site URL. */ 64 'activateblog' => __( 'You are about to activatethe site %s.' ),65 /* translators: %s: Site URL. */ 66 'deactivateblog' => __( 'You are about to deactivate the site %s.' ),64 'activateblog' => __( 'You are about to remove the deletion flag from the site %s.' ), 65 /* translators: %s: Site URL. */ 66 'deactivateblog' => __( 'You are about to flag the site %s for deletion.' ), 67 67 /* translators: %s: Site URL. */ 68 68 'unarchiveblog' => __( 'You are about to unarchive the site %s.' ), … … 107 107 $site_details = get_site( $id ); 108 108 $site_address = untrailingslashit( $site_details->domain . $site_details->path ); 109 $submit = __( 'Confirm' ); 109 110 110 111 require_once ABSPATH . 'wp-admin/admin-header.php'; … … 125 126 </div> 126 127 <?php 127 } else { 128 $submit = __( 'Confirm' ); 128 } elseif ( 'archiveblog' === $site_action ) { 129 ?> 130 <div class="notice notice-warning inline"> 131 <p><?php _e( 'Archiving a site makes the site unavailable to its users and visitors. This is a reversible action.' ); ?> 132 </div> 133 <?php 134 } elseif ( 'deactivateblog' === $site_action ) { 135 ?> 136 <div class="notice notice-warning inline"> 137 <p><?php _e( 'Flagging a site for deletion makes the site unavailable to its users and visitors. This is a reversible action. A super admin can permanently delete the site at a later date.' ); ?> 138 </div> 139 <?php 129 140 } 130 141 ?> … … 206 217 <input type="hidden" name="_wp_http_referer" value="<?php echo esc_attr( wp_get_referer() ); ?>" /> 207 218 <?php wp_nonce_field( 'ms-delete-sites', '_wpnonce', false ); ?> 219 <div class="notice notice-warning inline"> 220 <p><?php _e( 'Deleting a site is a permanent action that cannot be undone. This will delete the entire site and its uploads directory.' ); ?> 221 </div> 208 222 <p><?php _e( 'You are about to delete the following sites:' ); ?></p> 209 223 <ul class="ul-disc"> … … 221 235 <?php endforeach; ?> 222 236 </ul> 223 <?php submit_button( __( ' Confirm' ), 'primary' ); ?>237 <?php submit_button( __( 'Delete these sites permanently' ), 'primary' ); ?> 224 238 </form> 225 239 </div> … … 272 286 273 287 /** 274 * Fires after a network site is activated.288 * Fires after a network site has its deletion flag removed. 275 289 * 276 290 * @since MU (3.0.0) 277 291 * 278 * @param int $id The ID of the activated site.292 * @param int $id The ID of the reactivated site. 279 293 */ 280 294 do_action( 'activate_blog', $id ); … … 283 297 case 'deactivateblog': 284 298 /** 285 * Fires before a network site is deactivated.299 * Fires before a network site is flagged for deletion. 286 300 * 287 301 * @since MU (3.0.0) 288 302 * 289 * @param int $id The ID of the site being deactivated.303 * @param int $id The ID of the site being flagged for deletion. 290 304 */ 291 305 do_action( 'deactivate_blog', $id ); … … 327 341 break; 328 342 case 'all_delete': 329 $msg = __( 'Sites deleted.' );343 $msg = __( 'Sites permanently deleted.' ); 330 344 break; 331 345 case 'delete': 332 $msg = __( 'Site deleted.' );346 $msg = __( 'Site permanently deleted.' ); 333 347 break; 334 348 case 'not_deleted': … … 342 356 break; 343 357 case 'activateblog': 344 $msg = __( 'Site activated.' );358 $msg = __( 'Site deletion flag removed.' ); 345 359 break; 346 360 case 'deactivateblog': 347 $msg = __( 'Site deactivated.' );361 $msg = __( 'Site flagged for deletion.' ); 348 362 break; 349 363 case 'unspamblog': -
trunk/src/wp-includes/class-wp-site.php
r54133 r60358 127 127 128 128 /** 129 * Whether the site should be treated as deleted.129 * Whether the site should be treated as flagged for deletion. 130 130 * 131 131 * A numeric string, for compatibility reasons. -
trunk/src/wp-includes/ms-site.php
r60264 r60358 1244 1244 1245 1245 /** 1246 * Fires when the ' deleted' status is added to a site.1246 * Fires when the 'flagged for deletion' status is added to a site. 1247 1247 * 1248 1248 * @since 3.5.0 … … 1254 1254 1255 1255 /** 1256 * Fires when the ' deleted' status is removed from a site.1256 * Fires when the 'flagged for deletion' status is removed from a site. 1257 1257 * 1258 1258 * @since 3.5.0 -
trunk/src/wp-includes/user.php
r60310 r60358 1127 1127 * @param int $user_id User ID. 1128 1128 * @param bool $all Whether the returned sites array should contain all sites, including 1129 * those marked 'deleted', 'archived', or 'spam'. Default false.1129 * those flagged for deletion, archived, or marked as spam. 1130 1130 */ 1131 1131 return apply_filters( 'get_blogs_of_user', $sites, $user_id, $all );
Note: See TracChangeset for help on using the changeset viewer.