[wp-trac] [WordPress Trac] #12966: get_post_types returning more than desired results

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 16 14:09:54 UTC 2010


#12966: get_post_types returning more than desired results
------------------------------+---------------------------------------------
 Reporter:  michaelh          |        Owner:        
     Type:  defect (bug)      |       Status:  closed
 Priority:  normal            |    Milestone:  3.0   
Component:  Post Types        |      Version:  3.0   
 Severity:  normal            |   Resolution:  fixed 
 Keywords:  has-patch tested  |  
------------------------------+---------------------------------------------
Changes (by nacin):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 [14108]

 Introduce the wp_filter_object_list() helper, with an $operator arg. Fixes
 an intersection bug in get_post_types() and get_taxonomies(). Also
 switches $operator default from 'or' to 'and' for get_post_stati(). props
 scribu, fixes #12966.

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


More information about the wp-trac mailing list