diff options
Diffstat (limited to 'wp-admin/network/sites.php')
-rw-r--r-- | wp-admin/network/sites.php | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/wp-admin/network/sites.php b/wp-admin/network/sites.php index 402c047..b583509 100644 --- a/wp-admin/network/sites.php +++ b/wp-admin/network/sites.php @@ -28,22 +28,20 @@ get_current_screen()->add_help_tab( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => - '<p>' . __( 'Add New takes you to the Add New Site screen. You can search for a site by Name, ID number, or IP address. Screen Options allows you to choose how many sites to display on one page.' ) . '</p>' . - '<p>' . __( 'This is the main table of all sites on this network. Switch between list and excerpt views by using the icons above the right side of the table.' ) . '</p>' . + '<p>' . __( 'Add New Site takes you to the screen for adding a new site to the network. You can search for a site by Name, ID number, or IP address. Screen Options allows you to choose how many sites to display on one page.' ) . '</p>' . + '<p>' . __( 'This is the main table of all sites on this network. Switch between list and excerpt views by using the icons above the right side of the table.' ) . '</p>' . '<p>' . __( 'Hovering over each site reveals seven options (three for the primary site):' ) . '</p>' . '<ul><li>' . __( 'An Edit link to a separate Edit Site screen.' ) . '</li>' . '<li>' . __( 'Dashboard leads to the Dashboard for that site.' ) . '</li>' . '<li>' . __( 'Deactivate, Archive, and Spam which lead to confirmation screens. These actions can be reversed later.' ) . '</li>' . - '<li>' . __( 'Delete which is a permanent action after the confirmation screens.' ) . '</li>' . - '<li>' . __( 'Visit to go to the front-end site live.' ) . '</li></ul>' . - '<p>' . __( 'The site ID is used internally, and is not shown on the front end of the site or to users/viewers.' ) . '</p>' . - '<p>' . __( 'Clicking on bold headings can re-sort this table.' ) . '</p>', + '<li>' . __( 'Delete which is a permanent action after the confirmation screen.' ) . '</li>' . + '<li>' . __( 'Visit to go to the front-end of the live site.' ) . '</li></ul>', ) ); get_current_screen()->set_help_sidebar( '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . - '<p>' . __( '<a href="https://wordpress.org/documentation/article/network-admin-sites-screen/">Documentation on Site Management</a>' ) . '</p>' . + '<p>' . __( '<a href="https://developer.wordpress.org/advanced-administration/multisite/admin/#network-admin-sites-screen">Documentation on Site Management</a>' ) . '</p>' . '<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support forums</a>' ) . '</p>' ); @@ -118,8 +116,20 @@ if ( isset( $_GET['action'] ) ) { <input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" /> <input type="hidden" name="_wp_http_referer" value="<?php echo esc_attr( wp_get_referer() ); ?>" /> <?php wp_nonce_field( $site_action . '_' . $id, '_wpnonce', false ); ?> - <p><?php printf( $manage_actions[ $site_action ], $site_address ); ?></p> - <?php submit_button( __( 'Confirm' ), 'primary' ); ?> + <?php + if ( 'deleteblog' === $site_action ) { + $submit = __( 'Delete this site permanently' ); + ?> + <div class="notice notice-warning inline"> + <p><?php _e( 'Deleting a site is a permanent action that cannot be undone. This will delete the entire site and its uploads directory.' ); ?> + </div> + <?php + } else { + $submit = __( 'Confirm' ); + } + ?> + <p><?php printf( $manage_actions[ $site_action ], "<strong>{$site_address}</strong>" ); ?></p> + <?php submit_button( $submit, 'primary' ); ?> </form> </div> <?php |