[wp-trac] [WordPress Trac] #41813: get_terms is hiding taxonomies that are not empty

WordPress Trac noreply at wordpress.org
Thu Jun 8 13:30:08 UTC 2023


#41813: get_terms is hiding taxonomies that are not empty
------------------------------+------------------------------
 Reporter:  subrataemfluence  |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Taxonomy          |     Version:  4.8.1
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+------------------------------

Comment (by ramon fincken):

 Confirmed

 the query is simple and returns all 3

 {{{
                         SELECT  t.term_id
                         FROM wp_terms AS t  INNER JOIN wp_term_taxonomy AS
 tt ON t.term_id = tt.term_id
                         WHERE tt.taxonomy IN ('media_content_category')
                         ORDER BY t.name ASC
 }}}


 however .. the count IS actually zero for all but the first one, see image
 which I will add now

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/41813#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list