[wp-trac] [WordPress Trac] #38027: Comments feed returns invalid timestamp in http headers when there are no comments

WordPress Trac noreply at wordpress.org
Sat Sep 17 11:37:44 UTC 2016


#38027: Comments feed returns invalid timestamp in http headers when there are no
comments
------------------------------------------+------------------
 Reporter:  dllh                          |       Owner:
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  4.7
Component:  Feeds                         |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+------------------
Changes (by swissspidy):

 * keywords:  needs-patch => needs-patch needs-unit-tests


Comment:

 [attachment:35788.diff] fixes the header for the comments feed by
 returning the current date in this case. However, posts are likely also
 affected as soon as the posts list table is empty (rarely the case
 though).

 Also, there's the `lastBuildDate` field in the RSS feeds. Ideally, this
 would be best solved in the `get_lastcommentmodified()` and
 `get_lastpostmodified()` functions directly.

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


More information about the wp-trac mailing list