Make WordPress Core


Ignore:
Timestamp:
11/18/2006 08:46:43 PM (19 years ago)
Author:
ryan
Message:

Base last modified time for comment feeds on comments, not the post. Props mdawaffe. fixes #137

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r4460 r4483  
    22
    33class WP {
    4     var $public_query_vars = array('m', 'p', 'posts', 'w', 'cat', 'withcomments', 's', 'search', 'exact', 'sentence', 'debug', 'calendar', 'page', 'paged', 'more', 'tb', 'pb', 'author', 'order', 'orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'feed', 'author_name', 'static', 'pagename', 'page_id', 'error', 'comments_popup', 'attachment', 'attachment_id', 'subpost', 'subpost_id', 'preview', 'robots');
     4    var $public_query_vars = array('m', 'p', 'posts', 'w', 'cat', 'withcomments', 'withoutcomments', 's', 'search', 'exact', 'sentence', 'debug', 'calendar', 'page', 'paged', 'more', 'tb', 'pb', 'author', 'order', 'orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'feed', 'author_name', 'static', 'pagename', 'page_id', 'error', 'comments_popup', 'attachment', 'attachment_id', 'subpost', 'subpost_id', 'preview', 'robots');
    55
    66    var $private_query_vars = array('offset', 'posts_per_page', 'posts_per_archive_page', 'what_to_show', 'showposts', 'nopaging', 'post_type');
     
    179179        } else {
    180180            // We're showing a feed, so WP is indeed the only thing that last changed
    181             if ( $this->query_vars['withcomments'] )
     181            if ( $this->query_vars['withcomments']
     182                || ( !$this->query_vars['withoutcomments']
     183                    && ( $this->query_vars['p']
     184                        || $this->query_vars['name']
     185                        || $this->query_vars['page_id']
     186                        || $this->query_vars['pagename']
     187                        || $this->query_vars['attachment']
     188                        || $this->query_vars['attachment_id']
     189                    )
     190                )
     191            )
    182192                $wp_last_modified = mysql2date('D, d M Y H:i:s', get_lastcommentmodified('GMT'), 0).' GMT';
    183193            else
Note: See TracChangeset for help on using the changeset viewer.