diff --git a/wp-includes/class-wp-site-query.php b/wp-includes/class-wp-site-query.php index d963c5edb4..3d2f4f173b 100644 --- a/wp-includes/class-wp-site-query.php +++ b/wp-includes/class-wp-site-query.php @@ -570,7 +570,8 @@ class WP_Site_Query { $this->sql_clauses['where']['date_query'] = preg_replace( '/^\s*AND\s*/', '', $this->date_query->get_sql() ); } - $join = ''; + $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' ); /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 31590d5032..19d346f30b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.