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-rss2.php

    r44948 r45247  
    4343    <link><?php bloginfo_rss( 'url' ); ?></link>
    4444    <description><?php bloginfo_rss( 'description' ); ?></description>
    45     <lastBuildDate>
    46     <?php
    47         $date = get_last_build_date();
    48         echo $date ? mysql2date( 'r', $date, false ) : date( 'r' );
    49     ?>
    50     </lastBuildDate>
     45    <lastBuildDate><?php echo get_feed_build_date( 'r' ); ?></lastBuildDate>
    5146    <language><?php bloginfo_rss( 'language' ); ?></language>
    5247    <sy:updatePeriod>
Note: See TracChangeset for help on using the changeset viewer.