Make WordPress Core


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

    r45215 r45247  
    4444    <subtitle type="text"><?php bloginfo_rss( 'description' ); ?></subtitle>
    4545
    46     <?php $date = get_last_build_date(); ?>
    47     <updated><?php echo $date ? mysql2date( 'Y-m-d\TH:i:s\Z', $date, false ) : date( 'Y-m-d\TH:i:s\Z' ); ?></updated>
     46    <updated><?php echo get_feed_build_date( 'Y-m-d\TH:i:s\Z' ); ?></updated>
    4847
    4948<?php if ( is_singular() ) { ?>
Note: See TracChangeset for help on using the changeset viewer.