[wp-trac] [WordPress Trac] #47304: Feed <lastBuildDate> Bug

WordPress Trac noreply at wordpress.org
Sun May 19 04:44:13 UTC 2019


#47304: Feed <lastBuildDate> Bug
-------------------------------------------------+-------------------------
 Reporter:  onlanka                              |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  5.2.2
Component:  Feeds                                |     Version:  5.2
 Severity:  critical                             |  Resolution:
 Keywords:  needs-patch reporter-feedback        |     Focuses:
  needs-dev-note dev-feedback                    |
-------------------------------------------------+-------------------------
Changes (by onlanka):

 * keywords:  needs-patch reporter-feedback => needs-patch reporter-feedback
     needs-dev-note dev-feedback


Comment:

 Finally I fixed it, But this might be **Not** the correct way.
 But I had to do this until official patch released for this issue.

 What I did is, in `wp-includes/feed-rss2.php`

 Code line 45 was:

 {{{
 <lastBuildDate><?php echo get_feed_build_date( 'r' ); ?></lastBuildDate>
 }}}

 I replaced it with:


 {{{
 <lastBuildDate><?php echo mysql2date( 'D, d M Y H:i:s +0000',
 get_post_time( 'Y-m-d H:i:s', true ), false ); ?></lastBuildDate>
 }}}

 This has fixed the problem, but again this might not the correct way to
 fix this problem!

 I applied this fix to my live blog, it's feed URL is:

 {{{
 https://www.onlanka.com/feed
 }}}

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


More information about the wp-trac mailing list