mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Fix a sometimes notice in wpmu_current_site()
props johnjamesjacoby. see #27003. Built from https://develop.svn.wordpress.org/trunk@27275 git-svn-id: http://core.svn.wordpress.org/trunk@27131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2d8e1ca5b0
commit
79fbaf2e4c
@ -250,7 +250,7 @@ function wpmu_current_site() {
|
||||
$networks = $wpdb->get_col( "SELECT id FROM $wpdb->site LIMIT 2" );
|
||||
|
||||
if ( count( $networks ) <= 1 ) {
|
||||
$current_site = wp_get_network( $networks[0]->id );
|
||||
$current_site = wp_get_network( $networks[0] );
|
||||
|
||||
$current_site->blog_id = $wpdb->get_var( $wpdb->prepare( "SELECT blog_id
|
||||
FROM $wpdb->blogs WHERE domain = %s AND path = %s",
|
||||
|
Loading…
Reference in New Issue
Block a user