WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 6 years ago

Last modified 5 years ago

#7651 closed defect (bug) (fixed)

Constants in iso8601_to_datetime() should be strings instead

Reported by: jacobsantos Owned by:
Milestone: 2.7 Priority: low
Severity: minor Version: 2.7
Component: General Keywords: has-patch needs-testing
Focuses: Cc:

Description

The constants used for iso8601_to_datetime() should be strings instead. PHP will convert the constants to strings once it realizes that there are no constants (yet) that match.

Fixes among other things, a notice that would be displayed.

Attachments (1)

7651.r8781.diff (1.5 KB) - added by jacobsantos 7 years ago.
Convert constants to lowercase strings and compare. Based off of r8781

Download all attachments as: .zip

Change History (4)

@jacobsantos7 years ago

Convert constants to lowercase strings and compare. Based off of r8781

comment:1 @jacobsantos7 years ago

  • Keywords has-patch needs-testing added

comment:2 @jacobsantos7 years ago

  • Version set to 2.7

comment:3 @ryan6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [9137]) Convert undefined constants to strings. Props jacobsantos. fixes #7651

Note: See TracTickets for help on using tickets.