Direct WP_Query::get_posts() calls can break
|Reported by:||nacin||Owned by:|
|Milestone:||3.1||Priority:||highest omg bbq|
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.
Change History (30)
comment:2 @SergeyBiryukov — 5 years ago
- Summary changed from Direct WP_Quey::get_posts() calls can break to Direct WP_Query::get_posts() calls can break