[wp-trac] [WordPress Trac] #36819: Load plugin.php earlier in wp-settings.php
WordPress Trac
noreply at wordpress.org
Sat Aug 13 15:59:05 UTC 2016
#36819: Load plugin.php earlier in wp-settings.php
------------------------------+-----------------------
Reporter: jorbin | Owner: jorbin
Type: task (blessed) | Status: reopened
Priority: normal | Milestone: 4.6
Component: Bootstrap/Load | Version:
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses:
------------------------------+-----------------------
Comment (by jorbin):
In [changeset:"38251"]:
{{{
#!CommitTicketReference repository="" revision="38251"
Bootstrap/Load: Revert Plugin Global restoration around `advance-
cache.php`.
First added in [37588] and later modified in [38224], the idea was to
ensure that filters/actions added before `advance-cache.php` would not
disappear if `advance-cache.php` overloaded the filters/actions with code
such as `$wp_filter = array()`. This is an edge case and one that there is
no documented case of existing.
This restores the behavior from WordPress 4.5 and before. It is strongly
encouraged that developers using `advance-cache.php` to use the Plugins
API that is available before the loading of `advance-cache.php` rather
than directly interacting with any of the globals.
Props azaozz, jorbin, dd32 for review, pento for review, westi for
investigation, ipstenu for research.
See #36819.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36819#comment:49>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list