Changeset 45910 for trunk/src/wp-includes/class-wp-site.php
- Timestamp:
- 08/29/2019 12:41:45 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-site.php
r45232 r45910 163 163 $_site = wp_cache_get( $site_id, 'sites' ); 164 164 165 if ( !$_site ) {165 if ( false === $_site ) { 166 166 $_site = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$wpdb->blogs} WHERE blog_id = %d LIMIT 1", $site_id ) ); 167 167 168 168 if ( empty( $_site ) || is_wp_error( $_site ) ) { 169 return false;169 $_site = -1; 170 170 } 171 171 172 172 wp_cache_add( $site_id, $_site, 'sites' ); 173 } 174 175 if ( is_numeric( $_site ) ) { 176 return false; 173 177 } 174 178
Note: See TracChangeset
for help on using the changeset viewer.