[wp-trac] [WordPress Trac] #29564: wp_get_themes() returns empty array to Network-Activated Plugin code
WordPress Trac
noreply at wordpress.org
Wed Oct 15 18:01:19 UTC 2014
#29564: wp_get_themes() returns empty array to Network-Activated Plugin code
--------------------------+----------------------
Reporter: adiant | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Themes | Version: 4.0
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Changes (by obenland):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
The default theme directory doesn't get registered until after must-use
and network-activated plugins were loaded, and only right before plugins
are loaded ([https://core.trac.wordpress.org/browser/tags/4.0/src/wp-
settings.php#L209 ref.]).
WordPress should not expect to be ready before it is, which is the `init`
hook, or—probably more appropriate—the `wp_loaded` hook.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29564#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list