Opened 13 years ago
Closed 13 years ago
#25378 closed defect (bug) (fixed)
Initialise $wp_filter and $merged_filters
| Reported by: | rmccue | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.7 |
| Component: | Plugins | Version: | |
| Severity: | trivial | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
At the moment, $wp_filter and $merged_filters are never actually initialised, they just kind of... pop into existence. $wp_actions is checked, but that's done on every call of do_action, where we could just do them all globally.
Attached patch does just that.
Attachments (2)
Change History (6)
#3
in reply to: ↑ 1
@
13 years ago
Replying to rmccue:
Moved to plugin.php as per dd32's comments.
FWIW, my comments in IRC were:
- The file stands-alone and is used in things like BackPress
- We fire actions/filters between the time plugin.php, and default-filters.php are included
- We sometimes only include plugin.php, ie. error conditions
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
We're up all night to get initialised