[wp-trac] [WordPress Trac] #20334: check_theme_switched() will Fatal Error if the old theme cannot be found for some reason

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 30 15:05:19 UTC 2012


#20334: check_theme_switched() will Fatal Error if the old theme cannot be found
for some reason
--------------------------+-------------------
 Reporter:  westi         |      Owner:  westi
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  3.4
Component:  Themes        |    Version:  3.4
 Severity:  normal        |   Keywords:
--------------------------+-------------------
 In {{{check_theme_switched()}}} we assume that we can get a WP_Theme
 object for the old theme.

 If this fails because the theme no longer exists or the option data
 doesn't match an available theme then we try and call a method on an
 object which doesn't exist.

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


More information about the wp-trac mailing list