X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/03f2fa83c13c1b532284205fa7efcab9b8b2c41f..3d39054f012aefe514b3f5509e32f09fc4feda44:/wp-admin/network/site-info.php diff --git a/wp-admin/network/site-info.php b/wp-admin/network/site-info.php index 634e0323..cb5ec6e2 100644 --- a/wp-admin/network/site-info.php +++ b/wp-admin/network/site-info.php @@ -15,7 +15,7 @@ if ( ! is_multisite() ) { } 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( @@ -47,7 +47,7 @@ if ( ! $details ) { } 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 ); } $parsed_scheme = parse_url( $details->siteurl, PHP_URL_SCHEME ); @@ -78,6 +78,11 @@ if ( isset( $_REQUEST['action'] ) && 'update-site' == $_REQUEST['action'] ) { } $update_parsed_url = parse_url( $blog_data['url'] ); + // If a path is not provided, use the default of `/`. + if ( ! isset( $update_parsed_url['path'] ) ) { + $update_parsed_url['path'] = '/'; + } + $blog_data['scheme'] = $update_parsed_url['scheme']; $blog_data['domain'] = $update_parsed_url['host']; $blog_data['path'] = $update_parsed_url['path']; @@ -138,21 +143,13 @@ require( ABSPATH . 'wp-admin/admin-header.php' );

|

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

' . $msg . '

'; @@ -167,14 +164,14 @@ if ( ! empty( $messages ) ) { // The main site of the network should not be updated on this page. if ( $is_main_site ) : ?> - - siteurl ); ?> + + domain . $details->path ); ?> - +