[wp-trac] Re: [WordPress Trac] #7326: get_posts not working properly

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 21 15:52:22 GMT 2008


#7326: get_posts not working properly
------------------------------+---------------------------------------------
 Reporter:  wpcandy           |        Owner:  pyadav  
     Type:  defect            |       Status:  assigned
 Priority:  high              |    Milestone:  2.6.2   
Component:  General           |      Version:  2.6     
 Severity:  blocker           |   Resolution:          
 Keywords:  needs-unit-tests  |  
------------------------------+---------------------------------------------
Comment (by ryan):

 They query looks fine until this "NOT IN (19, 20, 21, 22, 24)".  I think
 you have a plugin that manipulates the query.  Now that get_posts() uses
 WP_Query, it is subject to plugins that modify the query.  We'll probably
 have to disable query filters when calling WP_Query from get_posts().

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7326#comment:22>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list