mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-06 09:19:04 +00:00
The introduction of 'meta_query' to `get_terms()` in 4.4 made it possible for `get_terms()` to erroneously return duplicate results. To address the issue, we add the `DISTINCT` keyword to the SQL query when a 'meta_query' parameter has been provided. Props @jadpm. Fixes #35137. git-svn-id: https://develop.svn.wordpress.org/trunk@36003 602fd350-edb4-49c9-b593-d223f7449a82