Ticket #1406 (closed defect (bug): fixed)

Opened 7 years ago

Last modified 6 years ago

mysql2date() might use uninitialized variables

Reported by: mgeisler Owned by: ryan
Priority: normal Milestone:
Component: General Version: 1.5.1.1
Severity: normal Keywords:
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

comment:1   ryan7 years ago

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