[wp-trac] [WordPress Trac] #46627: is_new_day uses a week compare

WordPress Trac noreply at wordpress.org
Sun Mar 24 16:41:53 UTC 2019


#46627: is_new_day uses a week compare
-------------------------+-------------------------------------------------
 Reporter:  pbearne      |      Owner:  (none)
     Type:  defect       |     Status:  new
  (bug)                  |
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Date/Time    |    Version:
 Severity:  normal       |   Keywords:  has-unit-tests dev-feedback has-
  Focuses:               |  patch
-------------------------+-------------------------------------------------
 The is_new_day() function uses != to test I see no reason why we can't
 change this too !==

 So I have added a patch to do this and Unit test to check it

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46627>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list