Multisite: Replace `get_blog_details()` with `get_site()` in network admin screens.
Props iamfriendly. See #37102. Fixes #38349. Built from https://develop.svn.wordpress.org/trunk@38824 git-svn-id: http://core.svn.wordpress.org/trunk@38767 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f2ad579440
commit
64886517b9
|
@ -37,7 +37,7 @@ 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.' ) );
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ if ( isset( $_REQUEST['action'] ) && 'update-site' == $_REQUEST['action'] ) {
|
|||
$blog_data['path'] = $update_parsed_url['path'];
|
||||
}
|
||||
|
||||
$existing_details = get_blog_details( $id, false );
|
||||
$existing_details = get_site( $id );
|
||||
$blog_data_checkboxes = array( 'public', 'archived', 'spam', 'mature', 'deleted' );
|
||||
foreach ( $blog_data_checkboxes as $c ) {
|
||||
if ( ! in_array( $existing_details->$c, array( 0, 1 ) ) ) {
|
||||
|
@ -97,7 +97,7 @@ if ( isset( $_REQUEST['action'] ) && 'update-site' == $_REQUEST['action'] ) {
|
|||
update_blog_details( $id, $blog_data );
|
||||
|
||||
// Maybe update home and siteurl options.
|
||||
$new_details = get_blog_details( $id, false );
|
||||
$new_details = get_site( $id );
|
||||
|
||||
$old_home_url = trailingslashit( esc_url( get_option( 'home' ) ) );
|
||||
$old_home_parsed = parse_url( $old_home_url );
|
||||
|
|
|
@ -35,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.' ) );
|
||||
}
|
||||
|
|
|
@ -58,7 +58,7 @@ if ( ! $id )
|
|||
|
||||
$wp_list_table->prepare_items();
|
||||
|
||||
$details = get_blog_details( $id );
|
||||
$details = get_site( $id );
|
||||
if ( ! $details ) {
|
||||
wp_die( __( 'The requested site does not exist.' ) );
|
||||
}
|
||||
|
|
|
@ -51,7 +51,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.' ) );
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ if ( isset( $_GET['action'] ) ) {
|
|||
wp_die( __( 'Sorry, you are not allowed to change the current site.' ) );
|
||||
}
|
||||
|
||||
$site_details = get_blog_details( $id );
|
||||
$site_details = get_site( $id );
|
||||
$site_address = untrailingslashit( $site_details->domain . $site_details->path );
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-alpha-38823';
|
||||
$wp_version = '4.7-alpha-38824';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue