git-svn-id: http://core.svn.wordpress.org/trunk@23367 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6cb5f510b8
commit
a0c84bc523
|
@ -1489,7 +1489,7 @@ function _remove_theme_support( $feature ) {
|
|||
|
||||
switch ( $feature ) {
|
||||
case 'custom-header' :
|
||||
if ( false === did_action( 'wp_loaded', '_custom_header_background_just_in_time' ) )
|
||||
if ( ! did_action( 'wp_loaded' ) )
|
||||
break;
|
||||
$support = get_theme_support( 'custom-header' );
|
||||
if ( $support[0]['wp-head-callback'] )
|
||||
|
@ -1499,7 +1499,7 @@ function _remove_theme_support( $feature ) {
|
|||
break;
|
||||
|
||||
case 'custom-background' :
|
||||
if ( false === did_action( 'wp_loaded', '_custom_header_background_just_in_time' ) )
|
||||
if ( ! did_action( 'wp_loaded' ) )
|
||||
break;
|
||||
$support = get_theme_support( 'custom-background' );
|
||||
remove_action( 'wp_head', $support[0]['wp-head-callback'] );
|
||||
|
|
Loading…
Reference in New Issue