Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#4238 closed defect (bug) (fixed)

did_action called in wp_die sometimes before it's defined

Reported by: filosofo's profile filosofo Owned by:
Milestone: 2.2 Priority: normal
Severity: normal Version: 2.2
Component: Administration Keywords: did_action has-patch
Focuses: Cc:

Description

To reproduce: load the WP home page when wp-config.php doesn't exist. did_action gets called by wp_die, which is defined before wp-includes/plugin.php is included.

My patch (off trunk--but it should be basically the same for 2.2) moves did_action's definition to wp-includes/functions.php

Attachments (1)

did_action_patch.diff (1.4 KB) - added by filosofo 18 years ago.

Download all attachments as: .zip

Change History (4)

#1 @Nazgul
18 years ago

  • Keywords has-patch added

#2 @ryan
18 years ago

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

(In [5417]) Include plugin.php before calling wp_die. fixes #4238 for 2.2.

#3 @ryan
18 years ago

(In [5418]) Include plugin.php before calling wp_die. fixes #4238 for 2.3.

Note: See TracTickets for help on using tickets.