X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/b22765f41bf0b2021b9beb9120ee0ac91fa89292..ef91a7f4f3c6468973e192335a27ec0e0faca0b5:/wp-admin/network/site-settings.php diff --git a/wp-admin/network/site-settings.php b/wp-admin/network/site-settings.php index 550fae96..9d13d307 100644 --- a/wp-admin/network/site-settings.php +++ b/wp-admin/network/site-settings.php @@ -10,9 +10,6 @@ /** 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( __( 'Sorry, you are not allowed to edit this site.' ) ); @@ -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,7 +35,7 @@ $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.' ) ); } @@ -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';