[wp-trac] [WordPress Trac] #36819: Load plugin.php earlier in wp-settings.php
WordPress Trac
noreply at wordpress.org
Sat Aug 13 00:38:01 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: | Focuses:
----------------------------+-----------------------
Comment (by azaozz):
I too don't think we need `_backup_plugin_globals()` and
`_restore_plugin_globals()`. They change the existing behavior for no good
reason, see long slack discussion:
https://wordpress.slack.com/archives/core/p1471041725003663.
If we don't backup and restore the globals, it all behaves in the same way
as in 4.5. It doesn't make any difference where `$wp_filter` or
`add_filter()` are defined, it only matters if the global is set before
the function is called, and the place that function is called for the
first time hasn't changed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36819#comment:42>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list