Changeset 38003
- Timestamp:
- 07/07/2016 03:51:58 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-network-query.php
r37894 r38003 230 230 'network_ids' => $network_ids, 231 231 'found_networks' => $this->found_networks, 232 'max_num_pages' => $this->max_num_pages,233 232 ); 234 233 wp_cache_add( $cache_key, $cache_value, 'networks' ); … … 236 235 $network_ids = $cache_value['network_ids']; 237 236 $this->found_networks = $cache_value['found_networks']; 238 $this->max_num_pages = $cache_value['max_num_pages']; 237 } 238 239 if ( $this->found_networks && $this->query_vars['number'] ) { 240 $this->max_num_pages = ceil( $this->found_networks / $this->query_vars['number'] ); 239 241 } 240 242 … … 478 480 479 481 $this->found_networks = (int) $wpdb->get_var( $found_networks_query ); 480 $this->max_num_pages = ceil( $this->found_networks / $this->query_vars['number'] );481 482 } 482 483 }
Note: See TracChangeset
for help on using the changeset viewer.