Make WordPress Core


Ignore:
Timestamp:
05/22/2019 05:52:22 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Date/Time: Use strict comparison in is_new_day(), add a unit test.

Props pbearne.
Fixes #46627.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r45352 r45375  
    798798function is_new_day() {
    799799        global $currentday, $previousday;
    800         if ( $currentday != $previousday ) {
     800
     801        if ( $currentday !== $previousday ) {
    801802                return 1;
    802803        } else {
Note: See TracChangeset for help on using the changeset viewer.