Ticket #36717: 36717.7.diff
File 36717.7.diff, 991 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/ms-blogs.php
183 183 wp_cache_delete( $blog_id . $all, 'blog-details' ); 184 184 unset($details); 185 185 } 186 } elseif ( ! $details->blog_id || ! $details->site_id ) { 187 wp_cache_delete( $blog_id . $all, 'blog-details' ); 188 unset($details); 186 189 } else { 187 190 return $details; 188 191 } … … 203 206 wp_cache_delete( $blog_id, 'blog-details' ); 204 207 unset($details); 205 208 } 209 } elseif ( ! $details->blog_id || ! $details->site_id ) { 210 wp_cache_delete( $blog_id, 'blog-details' ); 211 unset($details); 206 212 } else { 207 213 return $details; 208 214 } … … 209 215 } 210 216 } 211 217 212 if ( empty( $details)) {218 if ( empty( $details ) || ! $details->blog_id || ! $details->site_id ) { 213 219 $details = WP_Site::get_instance( $blog_id ); 214 220 if ( ! $details ) { 215 221 // Set the full cache.