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:
parent
68d29b46c5
commit
87aba933fb
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue