Networks and Sites: Fix incorrect variable location.
This fixes an issue introduced in [44166] where the `$groupby` variable was inserted too low in the `get_site_ids()` function while merging [43832] into `trunk`. The merged location did not account for a new conditional statement that existed only in `trunk`, and would have resulted in values assigned to `$groupby` being erased in certain scenarios. Props spacedmonkey. See #44416. Fixes #45582. Built from https://develop.svn.wordpress.org/trunk@44186 git-svn-id: http://core.svn.wordpress.org/trunk@44016 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7616bf91af
commit
d6c74f0a32
|
@ -571,6 +571,7 @@ class WP_Site_Query {
|
|||
}
|
||||
|
||||
$join = '';
|
||||
$groupby = '';
|
||||
|
||||
if ( ! empty( $this->meta_query_clauses ) ) {
|
||||
$join .= $this->meta_query_clauses['join'];
|
||||
|
@ -585,8 +586,6 @@ class WP_Site_Query {
|
|||
|
||||
$where = implode( ' AND ', $this->sql_clauses['where'] );
|
||||
|
||||
$groupby = '';
|
||||
|
||||
$pieces = array( 'fields', 'join', 'where', 'orderby', 'limits', 'groupby' );
|
||||
|
||||
/**
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.1-alpha-44184';
|
||||
$wp_version = '5.1-alpha-44186';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue