Opened 7 years ago
Closed 7 years ago
#46627 closed defect (bug) (fixed)
is_new_day uses a weak comparison
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.3 | Priority: | low |
| Severity: | normal | Version: | |
| Component: | Date/Time | Keywords: | has-unit-tests dev-feedback has-patch |
| Focuses: | Cc: |
Description (last modified by )
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
Attachments (4)
Change History (8)
#1
@
7 years ago
If it, not felt that we should "fix" the function I have attached a unit test for the current code
part of my ongoing project to add unit tests for all function in functions.php :-)
#2
@
7 years ago
- Description modified (diff)
- Priority changed from normal to low
- Summary changed from is_new_day uses a week compare to is_new_day uses a weak comparison
Note: See
TracTickets for help on using
tickets.
patch with unit test