[wp-trac] [WordPress Trac] #39141: RSS feeds have incorrect lastBuildDate when using alternate languages

WordPress Trac noreply at wordpress.org
Sat Dec 10 18:42:09 UTC 2016


#39141: RSS feeds have incorrect lastBuildDate when using alternate languages
-------------------------------------+--------------------
 Reporter:  __jester                 |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  4.7.1
Component:  Feeds                    |     Version:  4.7
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+--------------------

Comment (by JxsDotNL):

 While this is not fixed in the core yet, you can use this code to make the
 RSS feeds validate again:

 {{{#!php
 <?php
 add_filter('date_i18n','rssfeeds_date_donttranslate',10,4);
 function rssfeeds_date_donttranslate($j, $req_format, $i, $gmt){
     if(!is_feed())
         return date($req_format);
     else
         return $j;
 }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39141#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list