# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: theme.php
--- theme.php Base (BASE)
+++ theme.php Locally Modified (Based On LOCAL)
@@ -1492,7 +1492,7 @@
 			if ( false === did_action( 'wp_loaded', '_custom_header_background_just_in_time' ) )
 				break;
 			$support = get_theme_support( 'custom-header' );
-			if ( $support[0]['wp-head-callback'] )
+			if ( isset( $support[0]['wp-head-callback'] ) )
 				remove_action( 'wp_head', $support[0]['wp-head-callback'] );
 			remove_action( 'admin_menu', array( $GLOBALS['custom_image_header'], 'init' ) );
 			unset( $GLOBALS['custom_image_header'] );
@@ -1502,6 +1502,7 @@
 			if ( false === did_action( 'wp_loaded', '_custom_header_background_just_in_time' ) )
 				break;
 			$support = get_theme_support( 'custom-background' );
+			if ( isset( $support[0]['wp-head-callback'] ) )                        
+	 			remove_action( 'wp_head', $support[0]['wp-head-callback'] );
 			remove_action( 'admin_menu', array( $GLOBALS['custom_background'], 'init' ) );
 			unset( $GLOBALS['custom_background'] );
