Hyphen in Theme Directory Breaks Theme Preview
|Reported by:||chrisjean||Owned by:||chrisbliss18|
|Component:||Themes||Keywords:||theme, preview, has-patch|
There is a bug in the regex expressions in the preview_theme() function. The hyphen is not escaped, so themes that have hyphens in the directory name cause the function to return rather than continue. Thus, when previewing a theme with a hypen in the directory, all that is rendered is a white page.
The attached diff corrects this issue when scrubbing both the template and the stylesheet.
Change History (12)
- Resolution fixed deleted
- Severity changed from normal to trivial
- Status changed from closed to reopened