Opened 18 years ago
Closed 18 years ago
#4166 closed defect (bug) (fixed)
Fix mktime() inside mysql2date() in wp-includes/functions.php
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.2 | Priority: | low |
Severity: | minor | Version: | 2.2 |
Component: | General | Keywords: | has-patch commit |
Focuses: | 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)
Note: See
TracTickets for help on using
tickets.
Looks good.