mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-11 23:28:18 +02:00
5dfd6a02a7
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
36 lines
629 B
PHP
36 lines
629 B
PHP
<?php
|
|
/**
|
|
* The WordPress version string
|
|
*
|
|
* @global string $wp_version
|
|
*/
|
|
$wp_version = '4.3-alpha-32713';
|
|
|
|
/**
|
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
|
*
|
|
* @global int $wp_db_version
|
|
*/
|
|
$wp_db_version = 32453;
|
|
|
|
/**
|
|
* Holds the TinyMCE version
|
|
*
|
|
* @global string $tinymce_version
|
|
*/
|
|
$tinymce_version = '4110-20150505';
|
|
|
|
/**
|
|
* Holds the required PHP version
|
|
*
|
|
* @global string $required_php_version
|
|
*/
|
|
$required_php_version = '5.2.4';
|
|
|
|
/**
|
|
* Holds the required MySQL version
|
|
*
|
|
* @global string $required_mysql_version
|
|
*/
|
|
$required_mysql_version = '5.0';
|