Make WordPress Core


Ignore:
Timestamp:
04/18/2019 05:07:07 PM (7 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-comments.php

    r44948 r45247  
    5050        <link><?php ( is_single() ) ? the_permalink_rss() : bloginfo_rss( 'url' ); ?></link>
    5151        <description><?php bloginfo_rss( 'description' ); ?></description>
    52         <lastBuildDate>
    53         <?php
    54                 $date = get_last_build_date();
    55                 echo $date ? mysql2date( 'r', $date, false ) : date( 'r' );
    56         ?>
    57         </lastBuildDate>
     52        <lastBuildDate><?php echo get_feed_build_date( 'r' ); ?></lastBuildDate>
    5853        <sy:updatePeriod>
    5954        <?php
Note: See TracChangeset for help on using the changeset viewer.