[wp-trac] [WordPress Trac] #9619: RegExp pattern bug in preview_theme function

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 21 23:53:35 GMT 2009


#9619: RegExp pattern bug in preview_theme function
--------------------------+-------------------------------------------------
 Reporter:  wpus.org      |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  Themes        |     Version:  2.7.1     
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 The theme can't be previewed if the theme path include '-' letter.
 Because preview_theme function will remove the dash letter. Please refer
 lines 852 and 860 in theme.php file.

 The current regular expression pattern:
 {{{
 '|[^a-z0-9_.-/]|i'
 }}}

 To fix it, just add one back slash before the last dash. Use the following
 pattern:
 {{{
 '|[^a-z0-9_.\-/]|i'
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9619>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list