Changeset 22274
- Timestamp:
- 10/23/2012 01:20:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r22132 r22274 1465 1465 case 'custom-header' : 1466 1466 $support = get_theme_support( 'custom-header' ); 1467 if ( $support[0]['wp-head-callback'])1467 if ( isset( $support[0]['wp-head-callback'] ) ) 1468 1468 remove_action( 'wp_head', $support[0]['wp-head-callback'] ); 1469 remove_action( 'admin_menu', array( $GLOBALS['custom_image_header'], 'init' ) ); 1470 unset( $GLOBALS['custom_image_header'] ); 1469 if ( isset( $GLOBALS['custom_image_header'] ) ) { 1470 remove_action( 'admin_menu', array( $GLOBALS['custom_image_header'], 'init' ) ); 1471 unset( $GLOBALS['custom_image_header'] ); 1472 } 1471 1473 break; 1472 1474 1473 1475 case 'custom-background' : 1474 1476 $support = get_theme_support( 'custom-background' ); 1475 remove_action( 'wp_head', $support[0]['wp-head-callback'] ); 1476 remove_action( 'admin_menu', array( $GLOBALS['custom_background'], 'init' ) ); 1477 unset( $GLOBALS['custom_background'] ); 1477 if ( isset( $support[0]['wp-head-callback'] ) ) 1478 remove_action( 'wp_head', $support[0]['wp-head-callback'] ); 1479 if ( isset( $GLOBALS['custom_background'] ) ) { 1480 remove_action( 'admin_menu', array( $GLOBALS['custom_background'], 'init' ) ); 1481 unset( $GLOBALS['custom_background'] ); 1482 } 1478 1483 break; 1479 1484 }
Note: See TracChangeset
for help on using the changeset viewer.