[wp-trac] [WordPress Trac] #46882: Calling wp_get_theme before recovery mode is initialized causes warnings
WordPress Trac
noreply at wordpress.org
Mon Apr 15 22:38:47 UTC 2019
#46882: Calling wp_get_theme before recovery mode is initialized causes warnings
-----------------------------------------+-----------------------------
Reporter: lkraav | Owner: SergeyBiryukov
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 5.2
Component: Bootstrap/Load | Version: trunk
Severity: normal | Resolution:
Keywords: servehappy has-patch commit | Focuses:
-----------------------------------------+-----------------------------
Comment (by SergeyBiryukov):
Replying to [comment:7 TimothyBlynJacobs]:
> It looks like this was because an mu-plugin was loading the currently
active theme before `wp_cookie_constants` was defined. This also occurs
before `register_theme_directory()` is called, so perhaps it could be
thought of as a bug in the plugin.
FWIW, I reproduced the issue by causing a syntax error in a mu-plugin that
does not interact with themes in any way.
Since `wp_cookie_constants()` is called after mu-plugins are loaded, seems
like any syntax error in any mu-plugin would cause this issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46882#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list