Opened 10 years ago
Closed 10 years ago
#31096 closed defect (bug) (duplicate)
System fails to revert to next "default" theme if default theme folder is renamed or deleted
Reported by: | randywsandberg | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.1 |
Component: | Themes | Keywords: | |
Focuses: | Cc: |
Description
Currently, when one changes the name of an active non-default WordPress theme the system reports, "The active theme is broken. Reverting to the default theme." And after a page reload, the default theme is displayed as active (see screenshots 1–3). But, what happens if one changes the name (or deletes) the default theme's folder? That's what my colleague and I wanted to find out.
Setup:
- WordPress 4.1
- Active theme (default theme): Twenty Fifteen
- Other themes installed (shipped with): Twenty Fourteen, Twenty Thirteen
- Mac Chrome 40.0.2214.91 (64-bit)
Steps:
- Via FTP, either delete or rename twentyfifteen folder (e.g., -twentyfifteen)
- Log in as admin (/wp-admin)
- Go to Appearance > Themes
--> bug (or at least an enhancement request!)
Expected, as can be seen when any other theme's folder is modified or removed, WordPress to revert back to the default theme (i.e., in this case Twenty Fourteen would make sense).
Instead, the system reports "ERROR: The theme directory "twentyfifteen" does not exist." and that's it. No recovery of any kind (see screenshots 4 and 5), other than by user intervention.
Reproducible? Always
Occurs:
- Mac Chrome 40.0.2214.91 (64-bit)
- Mac Firefox 35.0
Duplicate of #28645.