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

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 7 11:43:53 UTC 2010


#14788: get_categories returns (sub)categories with drafts
--------------------------+-------------------------------------------------
 Reporter:  illutic       |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.0.1          
 Severity:  major         |    Keywords:  get_categories 
--------------------------+-------------------------------------------------

Comment(by illutic):

 the code from [http://jeffri.net/2010/08/filter-get_terms-to-return-only-
 terms-with-published-post/ this post] resolves this issue.

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


More information about the wp-trac mailing list