[wp-trac] [WordPress Trac] #46627: is_new_day uses a weak comparison

WordPress Trac noreply at wordpress.org
Wed May 22 17:52:30 UTC 2019


#46627: is_new_day uses a weak comparison
-------------------------------------------------+-------------------------
 Reporter:  pbearne                              |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  closed
 Priority:  low                                  |   Milestone:  5.3
Component:  Date/Time                            |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-unit-tests dev-feedback has-     |     Focuses:
  patch                                          |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"45375" 45375]:
 {{{
 #!CommitTicketReference repository="" revision="45375"
 Date/Time: Use strict comparison in `is_new_day()`, add a unit test.

 Props pbearne.
 Fixes #46627.
 }}}

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


More information about the wp-trac mailing list