WordPress.org

Make WordPress Core

Changeset 25683


Ignore:
Timestamp:
10/03/2013 03:14:39 AM (6 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp.php

    r25659 r25683  
    329329            // We're showing a feed, so WP is indeed the only thing that last changed
    330330            if ( !empty($this->query_vars['withcomments'])
     331                || false !== strpos( $this->query_vars['feed'], 'comments-' )
    331332                || ( empty($this->query_vars['withoutcomments'])
    332333                    && ( !empty($this->query_vars['p'])
Note: See TracChangeset for help on using the changeset viewer.