Make WordPress Core


Ignore:
Timestamp:
12/16/2016 06:41:45 AM (8 years ago)
Author:
dd32
Message:

Feeds: Replace the RSS2 lastBuildDate date field with the r date specifier.

See #39141.

File:
1 edited

Legend:

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

    r39613 r39614  
    4545    <lastBuildDate><?php
    4646        $date = get_lastpostmodified( 'GMT' );
    47         echo $date ? mysql2date( 'D, d M Y H:i:s +0000', $date, false ) : date( 'D, d M Y H:i:s +0000' );
     47        echo $date ? mysql2date( 'r', $date, false ) : date( 'r' );
    4848    ?></lastBuildDate>
    4949    <language><?php bloginfo_rss( 'language' ); ?></language>
Note: See TracChangeset for help on using the changeset viewer.