mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
Feeds for singular object queries should be comment feeds.
git-svn-id: http://svn.automattic.com/wordpress/trunk@4127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f5be1bb637
commit
79e681baf5
@ -769,7 +769,7 @@ function do_feed() {
|
|||||||
$feed = 'rss2';
|
$feed = 'rss2';
|
||||||
|
|
||||||
$for_comments = false;
|
$for_comments = false;
|
||||||
if ( is_single() || get_query_var('withcomments') == 1 || $feed == 'comments-rss2' ) {
|
if ( is_singular() || get_query_var('withcomments') == 1 || $feed == 'comments-rss2' ) {
|
||||||
$feed = 'rss2';
|
$feed = 'rss2';
|
||||||
$for_comments = true;
|
$for_comments = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user