mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 04:04:35 +00:00
Customize: Only add custom-background to body_class() if the current theme supports custom background.
Props wido, swissspidy, ocean90, Mte90. Fixes #38168. git-svn-id: https://develop.svn.wordpress.org/trunk@45088 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2730,7 +2730,9 @@ function _remove_theme_support( $feature ) {
|
||||
break;
|
||||
}
|
||||
$support = get_theme_support( 'custom-background' );
|
||||
remove_action( 'wp_head', $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_background'], 'init' ) );
|
||||
unset( $GLOBALS['custom_background'] );
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user