Opened 12 years ago
Closed 12 years ago
#27815 closed defect (bug) (fixed)
PHP Warning during Background updates w/ Themes
| Reported by: | dd32 | Owned by: | dd32 |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.9 |
| Component: | Upgrade/Install | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 28137: