mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-16 07:35:39 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@25683 git-svn-id: http://core.svn.wordpress.org/trunk@25599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e46b819bb6
commit
9e15ed5b28
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user