Ticket #22246: 22246.diff
File 22246.diff, 889 bytes (added by , 8 years ago) |
---|
-
wp-includes/theme.php
1463 1463 1464 1464 switch ( $feature ) { 1465 1465 case 'custom-header' : 1466 if ( false === did_action( 'wp_loaded', '_custom_header_background_just_in_time' ) ) 1467 break; 1466 1468 $support = get_theme_support( 'custom-header' ); 1467 1469 if ( $support[0]['wp-head-callback'] ) 1468 1470 remove_action( 'wp_head', $support[0]['wp-head-callback'] ); … … 1471 1473 break; 1472 1474 1473 1475 case 'custom-background' : 1476 if ( false === did_action( 'wp_loaded', '_custom_header_background_just_in_time' ) ) 1477 break; 1474 1478 $support = get_theme_support( 'custom-background' ); 1475 1479 remove_action( 'wp_head', $support[0]['wp-head-callback'] ); 1476 1480 remove_action( 'admin_menu', array( $GLOBALS['custom_background'], 'init' ) );