Changeset 60358 for trunk/src/wp-admin/network/sites.php
- Timestamp:
- 06/27/2025 03:07:29 PM (5 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/network/sites.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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':
Note: See TracChangeset
for help on using the changeset viewer.