WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 8 years ago

#1406 closed defect (bug) (fixed)

mysql2date() might use uninitialized variables

Reported by: mgeisler Owned by: ryan
Milestone: Priority: normal
Severity: normal Version: 1.5.1.1
Component: General Keywords:
Focuses: Cc:

Description

The mysql2date() function in wp-includes/functions.php uses $month, $weekday, $month_abbrev, and $weekday_abbrev as global variables.

They are initialized in locale.php, but this file is loaded after a call to do_action('plugins_loaded'). If I understand the source correctly, then a plugin which attaches itself to the plugins_loaded action and which calls mysql2date() will fail.

Change History (2)

comment:1 ryan9 years ago

  • Owner changed from anonymous to ryan

comment:2 ketsugi8 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.