Make WordPress Core


Ignore:
Timestamp:
10/14/2004 08:27:56 AM (22 years ago)
Author:
saxmatt
Message:

Fix for bug 137. Patch from kelson.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-blog-header.php

    r1759 r1799  
    115115} else {
    116116    // We're showing a feed, so WP is indeed the only thing that last changed
    117     $wp_last_modified = mysql2date('D, d M Y H:i:s', get_lastpostmodified('GMT'), 0).' GMT';
     117    if ( $withcomments )
     118        $wp_last_modified = mysql2date('D, d M Y H:i:s', get_lastcommentmodified('GMT'), 0).' GMT';
     119    else
     120        $wp_last_modified = mysql2date('D, d M Y H:i:s', get_lastpostmodified('GMT'), 0).' GMT';
    118121    $wp_etag = '"' . md5($wp_last_modified) . '"';
    119     @header('Last-Modified: '.$wp_last_modified);
    120     @header('ETag: '.$wp_etag);
     122    @header("Last-Modified: $wp_last_modified");
     123    @header("ETag: $wp_etag");
    121124    @header ('X-Pingback: ' . get_bloginfo('pingback_url'));
    122125
Note: See TracChangeset for help on using the changeset viewer.