Files
wordpress/wp-includes
Boone Gorges 5dfd6a02a7 Avoid returning duplicate matches when using a meta query in WP_User_Query.
A meta_query containing an `OR` relation can result in the same record matching
multiple clauses, leading to duplicate results. The previous prevention against
duplicates [18178] #17582 became unreliable in 4.1 when `WP_Meta_Query`
introduced support for nested clauses. The current changeset adds a new method
`WP_Meta_Query::has_or_relation()` for checking whether an `OR` relation
appears anywhere in the query, and uses the new method in `WP_User_Query` to
enforce distinct results as necessary.

Props maxxsnake.
Fixes #32592.
Built from https://develop.svn.wordpress.org/trunk@32713


git-svn-id: http://core.svn.wordpress.org/trunk@32683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-06-09 17:42:28 +00:00
..
2015-06-01 17:38:29 +00:00
2015-06-08 21:32:27 +00:00
2015-05-09 18:27:26 +00:00
2015-05-26 18:13:25 +00:00
2015-05-26 18:53:27 +00:00
2015-05-26 21:51:31 +00:00
2015-05-26 22:17:25 +00:00
2015-05-27 18:15:25 +00:00
2015-06-01 17:38:29 +00:00