X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/4713a14935b83517997f3c88f808eb41da55033d..8ab4a4532479e8db471032b51042ec8c4716d091:/wp-admin/network/sites.php diff --git a/wp-admin/network/sites.php b/wp-admin/network/sites.php index 4dddfcfd..922ce765 100644 --- a/wp-admin/network/sites.php +++ b/wp-admin/network/sites.php @@ -14,7 +14,7 @@ if ( ! is_multisite() ) wp_die( __( 'Multisite support is not enabled.' ) ); if ( ! current_user_can( 'manage_sites' ) ) - wp_die( __( 'You do not have permission to access this page.' ) ); + wp_die( __( 'You do not have permission to access this page.' ), 403 ); $wp_list_table = _get_list_table( 'WP_MS_Sites_List_Table' ); $pagenum = $wp_list_table->get_pagenum(); @@ -22,7 +22,7 @@ $pagenum = $wp_list_table->get_pagenum(); $title = __( 'Sites' ); $parent_file = 'sites.php'; -add_screen_option( 'per_page', array( 'label' => _x( 'Sites', 'sites per page (screen options)' ) ) ); +add_screen_option( 'per_page' ); get_current_screen()->add_help_tab( array( 'id' => 'overview', @@ -42,7 +42,7 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . - '

' . __('Documentation on Site Management') . '

' . + '

' . __('Documentation on Site Management') . '

' . '

' . __('Support Forums') . '

' ); @@ -97,7 +97,7 @@ if ( isset( $_GET['action'] ) ) { case 'deleteblog': if ( ! current_user_can( 'delete_sites' ) ) - wp_die( __( 'You do not have permission to access this page.' ) ); + wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); $updated_action = 'not_deleted'; if ( $id != '0' && $id != $current_site->blog_id && current_user_can( 'delete_site', $id ) ) { @@ -227,8 +227,8 @@ if ( isset( $_GET['updated'] ) ) { /** * Filter a specific, non-default site-updated message in the Network admin. * - * The dynamic portion of the hook name, $_GET['updated'], refers to the non-default - * site update action. + * The dynamic portion of the hook name, `$_GET['updated']`, refers to the + * non-default site update action. * * @since 3.1.0 * @@ -239,7 +239,7 @@ if ( isset( $_GET['updated'] ) ) { } if ( ! empty( $msg ) ) - $msg = '

' . $msg . '

'; + $msg = '

' . $msg . '

'; } $wp_list_table->prepare_items(); @@ -261,7 +261,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); -