X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/138998bbd8f7a1ac38b2f1eacbdf7cd522be4b13..ef91a7f4f3c6468973e192335a27ec0e0faca0b5:/wp-admin/network/site-settings.php diff --git a/wp-admin/network/site-settings.php b/wp-admin/network/site-settings.php index f03803e1..9d13d307 100644 --- a/wp-admin/network/site-settings.php +++ b/wp-admin/network/site-settings.php @@ -10,11 +10,8 @@ /** Load WordPress Administration Bootstrap */ require_once( dirname( __FILE__ ) . '/admin.php' ); -if ( ! is_multisite() ) - wp_die( __( 'Multisite support is not enabled.' ) ); - if ( ! current_user_can( 'manage_sites' ) ) - wp_die( __( 'You do not have sufficient permissions to edit this site.' ) ); + wp_die( __( 'Sorry, you are not allowed to edit this site.' ) ); get_current_screen()->add_help_tab( array( 'id' => 'overview', @@ -29,8 +26,8 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

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

' . - '

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

' . - '

' . __('Support Forums') . '

' + '

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

' . + '

' . __('Support Forums') . '

' ); $id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0; @@ -38,13 +35,13 @@ $id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0; if ( ! $id ) wp_die( __('Invalid site ID.') ); -$details = get_blog_details( $id ); +$details = get_site( $id ); if ( ! $details ) { wp_die( __( 'The requested site does not exist.' ) ); } if ( !can_edit_network( $details->site_id ) ) - wp_die( __( 'You do not have permission to access this page.' ), 403 ); + wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); $is_main_site = is_main_site( $id ); @@ -83,6 +80,7 @@ if ( isset($_GET['update']) ) { $messages[] = __('Site options updated.'); } +/* translators: %s: site name */ $title = sprintf( __( 'Edit Site: %s' ), esc_html( $details->blogname ) ); $parent_file = 'sites.php'; @@ -95,21 +93,14 @@ require( ABSPATH . 'wp-admin/admin-header.php' );

|

- + $id, + 'selected' => 'site-settings' +) ); + if ( ! empty( $messages ) ) { foreach ( $messages as $msg ) echo '

' . $msg . '

';