diff --git a/wp-includes/class-wp-query.php b/wp-includes/class-wp-query.php index 0ca0572b9d..95904060ce 100644 --- a/wp-includes/class-wp-query.php +++ b/wp-includes/class-wp-query.php @@ -2411,7 +2411,7 @@ class WP_Query { $cgroupby = "{$this->db->comments}.comment_id"; } else { // Other non singular e.g. front $cjoin = "JOIN {$this->db->posts} ON ( {$this->db->comments}.comment_post_ID = {$this->db->posts}.ID )"; - $cwhere = "WHERE ( post_status = 'publish' OR ( post_status = 'inherit' && post_type = 'attachment' ) ) AND comment_approved = '1'"; + $cwhere = "WHERE ( post_status = 'publish' OR ( post_status = 'inherit' AND post_type = 'attachment' ) ) AND comment_approved = '1'"; $cgroupby = ''; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 5d526a7149..9f86259b17 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38490'; +$wp_version = '4.7-alpha-38491'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.