Ticket #12611: 12611.2.diff
File 12611.2.diff, 810 bytes (added by , 14 years ago) |
---|
-
wp-includes/query.php
1597 1597 * @return array List of posts. 1598 1598 */ 1599 1599 function &get_posts() { 1600 global $wpdb, $user_ID ;1600 global $wpdb, $user_ID, $_wp_using_ext_object_cache; 1601 1601 1602 1602 do_action_ref_array('pre_get_posts', array(&$this)); 1603 1603 … … 1626 1626 if ( !isset($q['suppress_filters']) ) 1627 1627 $q['suppress_filters'] = false; 1628 1628 1629 if ( !isset($q['cache_results']) ) 1630 $q['cache_results'] = true; 1629 if ( !isset($q['cache_results']) ) { 1630 if ( $_wp_using_ext_object_cache ) 1631 $q['cache_results'] = false; 1632 else 1633 $q['cache_results'] = true; 1634 } 1631 1635 1632 1636 if ( !isset($q['post_type']) ) { 1633 1637 if ( $this->is_search )