[wp-trac] [WordPress Trac] #24441: Twenty Thirteen switch theme back compat missing argument

WordPress Trac noreply at wordpress.org
Tue May 28 17:17:10 UTC 2013


#24441: Twenty Thirteen switch theme back compat missing argument
---------------------------+------------------
 Reporter:  Offereins      |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  3.6
Component:  Bundled Theme  |     Version:  3.3
 Severity:  normal         |  Resolution:
 Keywords:                 |
---------------------------+------------------

Comment (by nacin):

 A note, switch_theme() must be called with two arguments — switch_theme(
 WP_DEFAULT_THEME, WP_DEFAULT_THEME ) — to be compatible with pre-3.4.

 It won't work if WP_DEFAULT_THEME is a child theme, but core *should* pick
 up on that, declare the default child theme to be broken, and finally
 revert to the real default theme. At worst, the front of the site is a
 white screen (and the admin works fine), but that's better than a fatal
 error.

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


More information about the wp-trac mailing list