[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:04:03 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):

 {{{
         $query = new WP_Query;
         $query->set('cat', 4);
         $posts = $query->get_posts();
 }}}

 With your patch all set()s are stomped.

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


More information about the wp-trac mailing list