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
This commit is contained in:
parent
df0aceb365
commit
2dae159c6e
@ -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