mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Feeds: Comments on attachments display in the site-wide comments RSS feed.
Individual attachment pages already have their own RSS comment feed, and would be expected to be included in the site-wide comments RSS feed. Props jbrinley. Fixes #15610 git-svn-id: https://develop.svn.wordpress.org/trunk@36138 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3193,7 +3193,7 @@ class WP_Query {
|
||||
$cgroupby = "$wpdb->comments.comment_id";
|
||||
} else { // Other non singular e.g. front
|
||||
$cjoin = "JOIN $wpdb->posts ON ( $wpdb->comments.comment_post_ID = $wpdb->posts.ID )";
|
||||
$cwhere = "WHERE post_status = 'publish' AND comment_approved = '1'";
|
||||
$cwhere = "WHERE ( post_status = 'publish' OR ( post_status = 'inherit' && post_type = 'attachment' ) ) AND comment_approved = '1'";
|
||||
$cgroupby = '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user