From 35453dc623a96a5865c089a25a7bf7e73b821f75 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 1 Feb 2013 20:33:27 +0000 Subject: [PATCH] Properly check if the custom header/background has been initialized. fixes #23170. see #22246. git-svn-id: https://develop.svn.wordpress.org/trunk@23367 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/theme.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 580d2046ed..ac3d25aaf8 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -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'] );