Opened 6 years ago
Closed 6 years ago
#4166 closed defect (bug) (fixed)
Fix mktime() inside mysql2date() in wp-includes/functions.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | low | Milestone: | 2.2 |
| Component: | General | Version: | 2.2 |
| Severity: | minor | Keywords: | has-patch commit |
| Cc: |
Description
All of the parameters to mktime() are supposed to be of type int. The problem is that substr() is being used to provide each parameter and it returns a string, not an int. This isn't fatal because PHP will do the conversion for you, but it does through a warning. The simple way to deal with this is to cast all of the substr() calls to int.
Attachments (1)
Change History (4)
josephscott — 6 years ago
comment:1
foolswisdom — 6 years ago
- Keywords has-patch added
- Milestone changed from 2.4 to 2.2
- Version set to 2.2
- Keywords commit added; mysql2date mktime removed
- Owner changed from anonymous to rob1n
Note: See
TracTickets for help on using
tickets.

Looks good.