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

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 12 19:28:40 UTC 2010


#12966: get_post_types returning more than desired results
--------------------------+-------------------------------------------------
 Reporter:  michaelh      |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.0      
Component:  Template      |     Version:  3.0      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------

Comment(by nacin):

 Looks like get_post_stati() already performs the count correctly. I would
 suggest moving it over to the helper, but it actually allows for an OR
 operator, which is something we could potentially introduce to these as
 well.

 Standardization of arguments and functionality is a developer's best
 friend when they actually have to leverage the API.

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


More information about the wp-trac mailing list