From 87aba933fb58c0788a07ca0ecd2f06b0408670a1 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: http://core.svn.wordpress.org/trunk@24030 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 );