[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 Oct 22 08:25:07 UTC 2016


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

Comment (by swissspidy):

 @rachelbaker Good question. That's probably coming from my local setup. I
 changed the assertions to use `strtotime()` instead so it works regardless
 of the microseconds.

 In [attachment:38027.2.diff] I also adjusted
 `_transition_comment_status()` as per my last comment and added an
 additional test for that.

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


More information about the wp-trac mailing list