mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
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
|
* @return void
|
||||||
*/
|
*/
|
||||||
function twentythirteen_switch_theme( $theme_name, $theme ) {
|
function twentythirteen_switch_theme( $theme_name, $theme ) {
|
||||||
if ( 'twentythirteen' != $theme->template )
|
if ( 'twentythirteen' != $theme->get_template() )
|
||||||
switch_theme( $theme->template, $theme->stylesheet );
|
switch_theme( $theme->get_template(), $theme->get_stylesheet() );
|
||||||
elseif ( 'twentythirteen' != WP_DEFAULT_THEME )
|
elseif ( 'twentythirteen' != WP_DEFAULT_THEME )
|
||||||
switch_theme( WP_DEFAULT_THEME );
|
switch_theme( WP_DEFAULT_THEME );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user