WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/14/2015 06:36:14 PM (6 years ago)
Author:
jorbin
Message:

Improve lastBuildDate timestamp in rss feeds

RSS feed timestamps should reflect the actual timestamps for those RSS feeds rather than the generic timestamp for all posts and all comments.

Props stevenkword.
Fixes #4575.

File:
1 edited

Legend:

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

    r32468 r32765  
    4343    <link><?php bloginfo_rss('url') ?></link>
    4444    <description><?php bloginfo_rss("description") ?></description>
    45     <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate>
     45    <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_last_build_date_feed(), false); ?></lastBuildDate>
    4646    <language><?php bloginfo_rss( 'language' ); ?></language>
    4747    <sy:updatePeriod><?php
Note: See TracChangeset for help on using the changeset viewer.