[wp-trac] [WordPress Trac] #15806: get_terms with hide_empty returns count > 0 with unpublished items (was: get_terms with hide_empty returns count > 0 with trashed items)

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 18 18:42:25 UTC 2011


#15806: get_terms with hide_empty returns count > 0 with unpublished items
----------------------------------+------------------------------
 Reporter:  bendog                |       Owner:
     Type:  defect (bug)          |      Status:  new
 Priority:  normal                |   Milestone:  Awaiting Review
Component:  Taxonomy              |     Version:  3.0.2
 Severity:  minor                 |  Resolution:
 Keywords:  taxonomy custom post  |
----------------------------------+------------------------------

Comment (by vtowel):

 I could also reproduce this bug with posts pending approval. Their
 tags/categories shouldn't show up in the front end if those
 tags/categories are otherwise unused by published posts. Even better would
 be for get_terms to have an option specifying desired post status,
 "publish" being the default value.

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


More information about the wp-trac mailing list