[wp-trac] [WordPress Trac] #9244: Hyphen in Theme Directory Breaks
Theme Preview
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 27 21:58:20 GMT 2009
#9244: Hyphen in Theme Directory Breaks Theme Preview
--------------------------+-------------------------------------------------
Reporter: chrisbliss18 | Owner: chrisbliss18
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Themes | Version: 2.8
Severity: normal | Keywords: theme,preview
--------------------------+-------------------------------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9244>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list