From 2dae159c6e8d8bf22181661b4ccfb7f2c65bbecd Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 3 Oct 2013 03:14:39 +0000 Subject: [PATCH] Ensure wp::send_headers() detects a comments feed when permalinks are disabled and thus the withcomments QV is omitted. This fixes Last-Modified. props sweetie089. fixes #24622. git-svn-id: https://develop.svn.wordpress.org/trunk@25683 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/class-wp.php b/src/wp-includes/class-wp.php index aaf4c32bfc..05fd43ef6b 100644 --- a/src/wp-includes/class-wp.php +++ b/src/wp-includes/class-wp.php @@ -328,6 +328,7 @@ class WP { } else { // We're showing a feed, so WP is indeed the only thing that last changed if ( !empty($this->query_vars['withcomments']) + || false !== strpos( $this->query_vars['feed'], 'comments-' ) || ( empty($this->query_vars['withoutcomments']) && ( !empty($this->query_vars['p']) || !empty($this->query_vars['name'])