WordPress.org

Make WordPress Core

Changeset 39614


Ignore:
Timestamp:
12/16/16 06:41:45 (10 months 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.