[wp-trac] [WordPress Trac] #14788: get_categories returns (sub)categories with drafts

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 18 14:41:23 UTC 2011


#14788: get_categories returns (sub)categories with drafts
----------------------------------------+------------------------
 Reporter:  illutic                     |       Owner:
     Type:  defect (bug)                |      Status:  closed
 Priority:  normal                      |   Milestone:
Component:  General                     |     Version:  3.0.1
 Severity:  major                       |  Resolution:  duplicate
 Keywords:  get_categories 2nd-opinion  |
----------------------------------------+------------------------

Comment (by scribu):

 Also, if the post count didn't include draft posts, those subcategories
 wouldn't show up unless you set {{{'hide_empty' => false}}}. That's why
 it's a duplicate.

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


More information about the wp-trac mailing list