[wp-trac] [WordPress Trac] #16545: Direct WP_Quey::get_posts() calls can break
WordPress Trac
wp-trac at lists.automattic.com
Sat Feb 12 23:24:28 UTC 2011
#16545: Direct WP_Quey::get_posts() calls can break
-----------------------------+-----------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: highest omg bbq | Milestone: 3.1
Component: Query | Version: 3.1
Severity: blocker | Keywords:
-----------------------------+-----------------
{{{
global $wp_query;
$wp_query->set('cat', '-13');
$posts = $wp_query->get_posts();
}}}
That worked in 3.0, and fails in 3.1. With parse_query() never getting
called, now parsed_tax_query() never gets called. Previously enough logic
was in get_posts() for this to work. It was inconsistent because
parse_query() was circumvented, but it worked.
In IRC he planned out a strategy of sorts and Ryan is going to work up a
patch later.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16545>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list