[wp-trac] [WordPress Trac] #27815: PHP Warning during Background updates w/ Themes
WordPress Trac
noreply at wordpress.org
Tue Apr 15 10:56:07 UTC 2014
#27815: PHP Warning during Background updates w/ Themes
-----------------------------+-----------------
Reporter: dd32 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.9
Component: Upgrade/Install | Version:
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------
The following warning is triggered during background updates if there are
any theme updates available and the site has multiple theme directories
registered.
{{{
PHP Warning: Illegal offset type in isset or empty in wp-
includes/theme.php on line 614
}}}
This is caused by passing the update object to get_theme_root() instead of
the theme slug, when there's only 1 theme directory registered (The
default one) the function returns early and doesn't look at the theme slug
provided, if there are multiple directories however, it treats the slug as
a string and hits the above warning.
When the warning is hit, the default theme directory is returned, so all
updates were still flowing despite the warning.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27815>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list