[wp-trac] [WordPress Trac] #12428: Renaming the active theme results in massive failures (was: Apostrophes in theme names result in massive failures)

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 15 13:33:25 UTC 2010


#12428: Renaming the active theme results in massive failures
--------------------------+-------------------------------------------------
 Reporter:  nacin         |       Owner:  nacin    
     Type:  defect (bug)  |      Status:  accepted 
 Priority:  normal        |   Milestone:  3.0      
Component:  Themes        |     Version:           
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------
Changes (by nacin):

  * keywords:  => has-patch


Comment:

 get_current_theme() returns the current_theme option if it exists,
 otherwise it calculates it from the stylesheet and template paths. Patch
 attached removes the current_theme option and calls get_current_theme()
 again, if the theme isn't found in the result returned by get_themes().

 To reproduce: Activate a theme, then rename it. A few different admin
 pages, including wp-admin/themes.php, should flip out a bit.

 To test: Apply patch, activate a theme, then rename it.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12428#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list