#47007 closed defect (bug) (invalid)
object-cache.php loaded before must-use plugins
Reported by: | viktorix | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.1.1 |
Component: | Plugins | Keywords: | dev-feedback |
Focuses: | Cc: |
Description
I noticed that constants defined in must-use plugin were undefined if used in object-cache.php dropin plugin. Looking at wp-includes/load.php the object-cache.php check is loaded prior to must-use plugins.
I assumed must-use plugins are always loaded before all other plugins. If this is not a bug and it functions as intended, updating documentation would be helpful to note that must-use plugins are loaded after dropin plugins.
https://codex.wordpress.org/Must_Use_Plugins#Features
Thanks!
Change History (2)
Note: See
TracTickets for help on using
tickets.
Thanks for the report @viktorix.
This is indeed intended behaviour, as dropins control some of the low level behaviour of WordPress that loads much earlier than plugins do.
The Codex is a wiki, therefore that page can be edited by anyone with a wordpress.org user account.