mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Query: Consistently include a space in parentheses in WP_Meta_Query::get_sql_for_clause().
Props jillebehm, kaavyaiyer, hareesh-pillai. Fixes #49279. git-svn-id: https://develop.svn.wordpress.org/trunk@50576 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2598,7 +2598,7 @@ class WP_Query {
|
||||
// Comments feeds.
|
||||
if ( $this->is_comment_feed && ! $this->is_singular ) {
|
||||
if ( $this->is_archive || $this->is_search ) {
|
||||
$cjoin = "JOIN {$wpdb->posts} ON ({$wpdb->comments}.comment_post_ID = {$wpdb->posts}.ID) $join ";
|
||||
$cjoin = "JOIN {$wpdb->posts} ON ( {$wpdb->comments}.comment_post_ID = {$wpdb->posts}.ID ) $join ";
|
||||
$cwhere = "WHERE comment_approved = '1' $where";
|
||||
$cgroupby = "{$wpdb->comments}.comment_id";
|
||||
} else { // Other non-singular, e.g. front.
|
||||
|
||||
Reference in New Issue
Block a user