Changeset 22312
- Timestamp:
- 10/26/2012 04:16:49 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r22274 r22312 1465 1465 case 'custom-header' : 1466 1466 $support = get_theme_support( 'custom-header' ); 1467 if ( isset( $support[0]['wp-head-callback'] ))1467 if ( $support[0]['wp-head-callback'] ) 1468 1468 remove_action( 'wp_head', $support[0]['wp-head-callback'] ); 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 } 1469 remove_action( 'admin_menu', array( $GLOBALS['custom_image_header'], 'init' ) ); 1470 unset( $GLOBALS['custom_image_header'] ); 1473 1471 break; 1474 1472 1475 1473 case 'custom-background' : 1476 1474 $support = get_theme_support( '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 } 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'] ); 1483 1478 break; 1484 1479 }
Note: See TracChangeset
for help on using the changeset viewer.