Ticket #26937: 26937.2.diff
File 26937.2.diff, 2.0 KB (added by , 7 years ago) |
---|
-
wp-includes/link-template.php
1291 1291 1292 1292 // Build our arguments for WP_Query. 1293 1293 $query_args = array( 1294 'posts_per_page' => 1, 1295 'post_status' => 'publish', 1296 'post_type' => 'post', 1297 'orderby' => 'date', 1298 'order' => 'previous' === $this->adjacent ? 'DESC' : 'ASC', 1299 'no_found_rows' => true, 1300 'cache_results' => true, 1301 'date_query' => array(), 1294 'posts_per_page' => 1, 1295 'post_status' => 'publish', 1296 'post_type' => 'post', 1297 'orderby' => 'date', 1298 'order' => 'previous' === $this->adjacent ? 'DESC' : 'ASC', 1299 'ignore_sticky_posts' => true, 1300 'date_query' => array(), 1301 1302 // Performance considerations: 1303 'no_found_rows' => true, 1304 'cache_results' => true, 1305 'update_post_term_cache' => false, 1306 'update_post_meta_cache' => false, 1307 'split_the_query' => wp_using_ext_object_cache(), 1302 1308 ); 1303 1309 1304 1310 $tax_query = array(); -
wp-includes/load.php
375 375 $current_using = $_wp_using_ext_object_cache; 376 376 if ( null !== $using ) 377 377 $_wp_using_ext_object_cache = $using; 378 return $current_using;378 return (bool) $current_using; 379 379 } 380 380 381 381 /** -
wp-includes/query.php
3221 3221 } 3222 3222 3223 3223 $split_the_query = ( $old_request == $this->request && "$wpdb->posts.*" == $fields && !empty( $limits ) && $q['posts_per_page'] < 500 ); 3224 if ( $split_the_query && isset( $q['split_the_query'] ) && empty( $q['split_the_query'] ) ) { 3225 $split_the_query = false; 3226 } 3224 3227 3225 3228 /** 3226 3229 * Filter whether to split the query.