Make WordPress Core

Opened 17 years ago

Closed 16 years ago

Last modified 15 years ago

#7651 closed defect (bug) (fixed)

Constants in iso8601_to_datetime() should be strings instead

Reported by: jacobsantos's profile 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 17 years ago.
Convert constants to lowercase strings and compare. Based off of r8781

Download all attachments as: .zip

Change History (4)

@jacobsantos
17 years ago

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

#1 @jacobsantos
17 years ago

  • Keywords has-patch needs-testing added

#2 @jacobsantos
17 years ago

  • Version set to 2.7

#3 @ryan
16 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.