#26873 closed defect (bug) (fixed)
PHP warning on the Themes page when the active theme is deleted
Reported by: | toszcze | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | normal | Version: | 3.4 |
Component: | Themes | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
When the active theme is deleted from server, the Themes page shows a PHP warning:
Warning: implode(): Invalid arguments passed in /var/www/wordpress/wp-includes/class-wp-theme.php on line 675
To replicate this bug:
- In the admin panel go to Appearance -> Themes
- Activate any theme
- Remove the activated theme folder from server (or just rename it)
- Refresh the Themes page
Attachments (2)
Change History (7)
Note: See
TracTickets for help on using
tickets.
This should probably be fixed higher up in the stack, in
WP_Theme::display()
.See 26873.2.diff, which also fixes inaccurate comment about the
@return
value.Also discovered #27235 while testing this.