#26873 closed defect (bug) (fixed)
PHP warning on the Themes page when the active theme is deleted
| Reported by: | toszcze | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.9 |
| Component: | Themes | Version: | 3.4 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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
@returnvalue.Also discovered #27235 while testing this.