[wp-trac] [WordPress Trac] #16545: Direct WP_Query::get_posts() calls can break

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 14 18:16:19 UTC 2011


#16545: Direct WP_Query::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                  |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------

Comment (by ryan):

 Do the query from an init hook. It will always fail.  A query run after
 the big query could sometimes work (although anyone doing that really
 should call init() before hand.  My patch should work either way.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16545#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list