Make WordPress Core


Ignore:
Timestamp:
04/18/2019 05:07:07 PM (5 years ago)
Author:
adamsilverstein
Message:

Feeds: improve structure and naming of feed build date helper function.

Simplify overall code structure by passing the required format to the helper function.
Clarify functionality by renaming get_last_build_date to get_feed_build_date.

Props pento, spacedmonkey.
Fixes #4575.

File:
1 edited

Legend:

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

    r44948 r45247  
    1515    <link><?php bloginfo_rss( 'url' ); ?></link>
    1616    <description><?php bloginfo_rss( 'description' ); ?></description>
    17     <lastBuildDate>
    18     <?php
    19         $date = get_last_build_date();
    20         echo $date ? mysql2date( 'D, d M Y H:i:s +0000', $date ) : date( 'D, d M Y H:i:s +0000' );
    21     ?>
    22     </lastBuildDate>
     17    <lastBuildDate><?php echo get_feed_build_date( 'D, d M Y H:i:s +0000' ); ?></lastBuildDate>
    2318    <docs>http://backend.userland.com/rss092</docs>
    2419    <language><?php bloginfo_rss( 'language' ); ?></language>
Note: See TracChangeset for help on using the changeset viewer.