[wp-trac] [WordPress Trac] #35137: get_terms() with a meta_query filter returns duplicated terms

WordPress Trac noreply at wordpress.org
Fri Dec 18 09:08:14 UTC 2015


#35137: get_terms() with a meta_query filter returns duplicated terms
--------------------------------------+------------------
 Reporter:  jadpm                     |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  4.5
Component:  Taxonomy                  |     Version:  4.4
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------
Changes (by jadpm):

 * keywords:  needs-patch needs-unit-tests => has-patch has-unit-tests


Comment:

 I'm attaching a patch that adds a DISTINCT clause when the term query
 contains a meta_query (as this is the scenario where the bug was
 reproduced) and a unit test for it.

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


More information about the wp-trac mailing list