mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-11 02:49:04 +01:00
Multisite: Revert [37874].
After [37923], `get_blog_details()` contained a now unnecessary attempt at back-compat for objects stored in cache. See #36717. Built from https://develop.svn.wordpress.org/trunk@37929 git-svn-id: http://core.svn.wordpress.org/trunk@37870 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
48ca588a6c
commit
f4d46f0235
@ -183,10 +183,6 @@ function get_blog_details( $fields = null, $get_all = true ) {
|
||||
wp_cache_delete( $blog_id . $all, 'blog-details' );
|
||||
unset($details);
|
||||
}
|
||||
} elseif ( ! $details->blog_id || ! $details->site_id ) {
|
||||
// Clear objects missing critical properties.
|
||||
wp_cache_delete( $blog_id . $all, 'blog-details' );
|
||||
unset($details);
|
||||
} else {
|
||||
return $details;
|
||||
}
|
||||
@ -207,17 +203,13 @@ function get_blog_details( $fields = null, $get_all = true ) {
|
||||
wp_cache_delete( $blog_id, 'blog-details' );
|
||||
unset($details);
|
||||
}
|
||||
} elseif ( ! $details->blog_id || ! $details->site_id ) {
|
||||
// Clear objects missing critical properties.
|
||||
wp_cache_delete( $blog_id, 'blog-details' );
|
||||
unset($details);
|
||||
} else {
|
||||
return $details;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( empty( $details ) || ! $details->blog_id || ! $details->site_id ) {
|
||||
if ( empty($details) ) {
|
||||
$details = WP_Site::get_instance( $blog_id );
|
||||
if ( ! $details ) {
|
||||
// Set the full cache.
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.6-beta1-37928';
|
||||
$wp_version = '4.6-beta1-37929';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user