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
This commit is contained in:
Andrew Nacin 2013-04-18 17:10:47 +00:00
parent 68d29b46c5
commit 87aba933fb
1 changed files with 2 additions and 2 deletions

View File

@ -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 );