#8548 closed defect (bug) (fixed)
Theme preview fails when theme in subdirectory
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7.2 |
| Component: | Themes | Version: | 2.7 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I have a folder called dreamhost in my themes directory. All the themes display and can be activated properly, but the preview is broken, only showing a white page. This is because the preview_theme function is stripping out '/', changing 'dreamhost/classic' to 'dreamhostclassic', which then fails. Patch is attached.
Attachments (1)
Change History (9)
- Component changed from General to Themes
- Keywords has-patch added
- Owner anonymous deleted
- Version set to 2.7
- Resolution set to fixed
- Status changed from new to closed
comment:5
chaoskaizer — 4 years ago
- Keywords has-patch removed
- Resolution fixed deleted
- Status changed from closed to reopened
current fixes broke all themes that used "-" character for a directory name.
example
- themes\wp-theme
- themes\wp-theme-27 .
- Milestone changed from 2.7.1 to 2.7.2
See #9244 for patch to new problem.
comment:7
automattor — 4 years ago
- Resolution set to fixed
- Status changed from reopened to closed
Note: See
TracTickets for help on using
tickets.

Diff to avoid filtering out '/' from theme filenames.