mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
Boone Gorges
5d63b53a27
Ensure
get_terms()
results are unique when using 'meta_query'.
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. Merges [36003] to the 4.4 branch. Props @jadpm. Fixes #35137. git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36004 602fd350-edb4-49c9-b593-d223f7449a82
Description
No description provided
Languages
PHP
81.4%
CSS
8.9%
JavaScript
8.1%
SCSS
0.9%
HTML
0.7%