diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php index feb67d1fdc..cb2430054b 100644 --- a/wp-includes/class-wp-customize-manager.php +++ b/wp-includes/class-wp-customize-manager.php @@ -781,6 +781,10 @@ final class WP_Customize_Manager { 'theme_supports' => 'custom-background', ) ); + $this->add_setting( new WP_Customize_Background_Image_Setting( $this, 'background_image_thumb', array( + 'theme_supports' => 'custom-background', + ) ) ); + $this->add_control( new WP_Customize_Background_Image_Control( $this ) ); $this->add_setting( 'background_repeat', array( diff --git a/wp-includes/class-wp-customize-setting.php b/wp-includes/class-wp-customize-setting.php index b5873d83f1..c4cff0e29b 100644 --- a/wp-includes/class-wp-customize-setting.php +++ b/wp-includes/class-wp-customize-setting.php @@ -382,7 +382,7 @@ class WP_Customize_Filter_Setting extends WP_Customize_Setting { * * Results should be properly handled using another setting or callback. */ -class WP_Customize_Header_Image_Setting extends WP_Customize_Setting { +final class WP_Customize_Header_Image_Setting extends WP_Customize_Setting { public $id = 'header_image_data'; public function update( $value ) { @@ -398,4 +398,12 @@ class WP_Customize_Header_Image_Setting extends WP_Customize_Setting { else $custom_image_header->set_header_image( $value ); } -} \ No newline at end of file +} + +final class WP_Customize_Background_Image_Setting extends WP_Customize_Setting { + public $id = 'background_image_thumb'; + + public function update( $value ) { + remove_theme_mod( 'background_image_thumb' ); + } +}