From 0e188c68593d578c20003560162f9224f39bf39f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 18 Nov 2006 20:46:43 +0000 Subject: [PATCH] Base last modified time for comment feeds on comments, not the post. Props mdawaffe. fixes #137 git-svn-id: https://develop.svn.wordpress.org/trunk@4483 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/classes.php | 14 ++++++++++++-- wp-includes/functions.php | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index c27b2fcbd5..f317151232 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -1,7 +1,7 @@ query_vars['withcomments'] ) + if ( $this->query_vars['withcomments'] + || ( !$this->query_vars['withoutcomments'] + && ( $this->query_vars['p'] + || $this->query_vars['name'] + || $this->query_vars['page_id'] + || $this->query_vars['pagename'] + || $this->query_vars['attachment'] + || $this->query_vars['attachment_id'] + ) + ) + ) $wp_last_modified = mysql2date('D, d M Y H:i:s', get_lastcommentmodified('GMT'), 0).' GMT'; else $wp_last_modified = mysql2date('D, d M Y H:i:s', get_lastpostmodified('GMT'), 0).' GMT'; diff --git a/wp-includes/functions.php b/wp-includes/functions.php index ea37fbd321..d8d20ccc46 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -815,7 +815,7 @@ function do_feed() { $feed = 'rss2'; $for_comments = false; - if ( is_singular() || get_query_var('withcomments') == 1 || $feed == 'comments-rss2' ) { + if ( 1 != get_query_var('withoutcomments') && ( is_singular() || get_query_var('withcomments') == 1 || $feed == 'comments-rss2' ) ) { $feed = 'rss2'; $for_comments = true; }