mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
Feeds: Do not translate the lastBuildDate
field in RSS feeds.
Props stevenkword, dd32. Fixes #39141 Built from https://develop.svn.wordpress.org/trunk@39613 git-svn-id: http://core.svn.wordpress.org/trunk@39553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c92e916866
commit
f794939ed3
@ -43,7 +43,7 @@ do_action( 'rss_tag_pre', 'atom-comments' );
|
||||
|
||||
<updated><?php
|
||||
$date = get_lastcommentmodified( 'GMT' );
|
||||
echo $date ? mysql2date( 'Y-m-d\TH:i:s\Z', $date ) : date( 'Y-m-d\TH:i:s\Z' );
|
||||
echo $date ? mysql2date( 'Y-m-d\TH:i:s\Z', $date, false ) : date( 'Y-m-d\TH:i:s\Z' );
|
||||
?></updated>
|
||||
|
||||
<?php if ( is_singular() ) { ?>
|
||||
|
@ -32,7 +32,7 @@ do_action( 'rss_tag_pre', 'atom' );
|
||||
|
||||
<updated><?php
|
||||
$date = get_lastpostmodified( 'GMT' );
|
||||
echo $date ? mysql2date( 'Y-m-d\TH:i:s\Z', $date ) : date( 'Y-m-d\TH:i:s\Z' );
|
||||
echo $date ? mysql2date( 'Y-m-d\TH:i:s\Z', $date, false ) : date( 'Y-m-d\TH:i:s\Z' );
|
||||
?></updated>
|
||||
|
||||
<link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php bloginfo_rss('url') ?>" />
|
||||
|
@ -49,7 +49,7 @@ do_action( 'rss_tag_pre', 'rss2-comments' );
|
||||
<description><?php bloginfo_rss("description") ?></description>
|
||||
<lastBuildDate><?php
|
||||
$date = get_lastcommentmodified( 'GMT' );
|
||||
echo $date ? mysql2date( 'r', $date ) : date( 'r' );
|
||||
echo $date ? mysql2date( 'r', $date, false ) : date( 'r' );
|
||||
?></lastBuildDate>
|
||||
<sy:updatePeriod><?php
|
||||
/** This filter is documented in wp-includes/feed-rss2.php */
|
||||
|
@ -44,7 +44,7 @@ do_action( 'rss_tag_pre', 'rss2' );
|
||||
<description><?php bloginfo_rss("description") ?></description>
|
||||
<lastBuildDate><?php
|
||||
$date = get_lastpostmodified( 'GMT' );
|
||||
echo $date ? mysql2date( 'D, d M Y H:i:s +0000', $date ) : date( 'D, d M Y H:i:s +0000' );
|
||||
echo $date ? mysql2date( 'D, d M Y H:i:s +0000', $date, false ) : date( 'D, d M Y H:i:s +0000' );
|
||||
?></lastBuildDate>
|
||||
<language><?php bloginfo_rss( 'language' ); ?></language>
|
||||
<sy:updatePeriod><?php
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.8-alpha-39612';
|
||||
$wp_version = '4.8-alpha-39613';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user