From 71e9178beac6a881ebaab8a0ff43f222af61121e Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 18 Apr 2013 17:10:47 +0000 Subject: [PATCH] Twenty Thirteen: Use WP_Theme's methods, rather than legacy properties. git-svn-id: https://develop.svn.wordpress.org/trunk@24030 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentythirteen/inc/back-compat.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/twentythirteen/inc/back-compat.php b/wp-content/themes/twentythirteen/inc/back-compat.php index 08deaff669..ff0d5eecba 100644 --- a/wp-content/themes/twentythirteen/inc/back-compat.php +++ b/wp-content/themes/twentythirteen/inc/back-compat.php @@ -22,8 +22,8 @@ * @return void */ function twentythirteen_switch_theme( $theme_name, $theme ) { - if ( 'twentythirteen' != $theme->template ) - switch_theme( $theme->template, $theme->stylesheet ); + if ( 'twentythirteen' != $theme->get_template() ) + switch_theme( $theme->get_template(), $theme->get_stylesheet() ); elseif ( 'twentythirteen' != WP_DEFAULT_THEME ) switch_theme( WP_DEFAULT_THEME );