Feeds: Replace the RSS2 lastBuildDate
date field with the r
date specifier.
See #39141. git-svn-id: https://develop.svn.wordpress.org/trunk@39614 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
939e806ef1
commit
a5bb301d0b
@ -44,7 +44,7 @@ do_action( 'rss_tag_pre', 'rss2' );
|
|||||||
<description><?php bloginfo_rss("description") ?></description>
|
<description><?php bloginfo_rss("description") ?></description>
|
||||||
<lastBuildDate><?php
|
<lastBuildDate><?php
|
||||||
$date = get_lastpostmodified( 'GMT' );
|
$date = get_lastpostmodified( 'GMT' );
|
||||||
echo $date ? mysql2date( 'D, d M Y H:i:s +0000', $date, false ) : date( 'D, d M Y H:i:s +0000' );
|
echo $date ? mysql2date( 'r', $date, false ) : date( 'r' );
|
||||||
?></lastBuildDate>
|
?></lastBuildDate>
|
||||||
<language><?php bloginfo_rss( 'language' ); ?></language>
|
<language><?php bloginfo_rss( 'language' ); ?></language>
|
||||||
<sy:updatePeriod><?php
|
<sy:updatePeriod><?php
|
||||||
|
Loading…
Reference in New Issue
Block a user