Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 17 years ago

#7651 closed defect (bug) (fixed)

Constants in iso8601_to_datetime() should be strings instead

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

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 18 years ago.
Convert constants to lowercase strings and compare. Based off of r8781

Download all attachments as: .zip

Change History (4)

@jacobsantos
18 years ago

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

#1 @jacobsantos
18 years ago

  • Keywords has-patch needs-testing added

#2 @jacobsantos
18 years ago

  • Version → 2.7

#3 @ryan
18 years ago

  • Resolution → fixed
  • Status new → closed

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

Note: See TracTickets for help on using tickets.