Ticket #4238 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

did_action called in wp_die sometimes before it's defined

Reported by: filosofo Assigned to: anonymous
Priority: normal Milestone: 2.2
Component: Administration Version: 2.2
Severity: normal Keywords: did_action has-patch
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

did_action_patch.diff (1.4 kB) - added by filosofo on 05/09/07 15:31:46.

Change History

05/09/07 15:31:46 changed by filosofo

  • attachment did_action_patch.diff added.

05/09/07 15:33:54 changed by Nazgul

  • keywords changed from did_action to did_action has-patch.

05/09/07 16:17:41 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

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

05/09/07 16:18:11 changed by ryan

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