Changeset 35212
- Timestamp:
- 10/15/2015 10:06:38 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-network.php
r35024 r35212 210 210 $using_paths = wp_cache_get( 'networks_have_paths', 'site-options' ); 211 211 if ( false === $using_paths ) { 212 $using_paths = $wpdb->get_var( "SELECT id FROM {$wpdb->site} WHERE path <> '/' LIMIT 1" );213 wp_cache_add( 'networks_have_paths', (int)$using_paths, 'site-options' );212 $using_paths = (int) $wpdb->get_var( "SELECT id FROM {$wpdb->site} WHERE path <> '/' LIMIT 1" ); 213 wp_cache_add( 'networks_have_paths', $using_paths, 'site-options' ); 214 214 } 215 215 } 216 216 217 217 $paths = array(); 218 if ( true ===$using_paths ) {218 if ( $using_paths ) { 219 219 $path_segments = array_filter( explode( '/', trim( $path, '/' ) ) ); 220 220 … … 273 273 $search_domains = "'" . implode( "', '", $wpdb->_escape( $domains ) ) . "'"; 274 274 275 if ( false ===$using_paths ) {275 if ( ! $using_paths ) { 276 276 $network = $wpdb->get_row( " 277 277 SELECT * FROM {$wpdb->site}
Note: See TracChangeset
for help on using the changeset viewer.