Make WordPress Core

Ticket #23170: theme.php.patch

File theme.php.patch, 1.2 KB (added by alex-ye, 14 years ago)

Using isset() to avoid the PHP notice .

Line 
1# This patch file was generated by NetBeans IDE
2# It uses platform neutral UTF-8 encoding and \n newlines.
3# Above lines and this line are ignored by the patching process.
4Index: theme.php
5--- theme.php Base (BASE)
6+++ theme.php Locally Modified (Based On LOCAL)
7@@ -1492,7 +1492,7 @@
8 if ( false === did_action( 'wp_loaded', '_custom_header_background_just_in_time' ) )
9 break;
10 $support = get_theme_support( 'custom-header' );
11- if ( $support[0]['wp-head-callback'] )
12+ if ( isset( $support[0]['wp-head-callback'] ) )
13 remove_action( 'wp_head', $support[0]['wp-head-callback'] );
14 remove_action( 'admin_menu', array( $GLOBALS['custom_image_header'], 'init' ) );
15 unset( $GLOBALS['custom_image_header'] );
16@@ -1502,6 +1502,7 @@
17 if ( false === did_action( 'wp_loaded', '_custom_header_background_just_in_time' ) )
18 break;
19 $support = get_theme_support( 'custom-background' );
20+ if ( isset( $support[0]['wp-head-callback'] ) )
21 remove_action( 'wp_head', $support[0]['wp-head-callback'] );
22 remove_action( 'admin_menu', array( $GLOBALS['custom_background'], 'init' ) );
23 unset( $GLOBALS['custom_background'] );