Ticket #20871: 20871.7.diff
| File 20871.7.diff, 1.5 KB (added by , 13 years ago) |
|---|
-
wp-includes/class-wp-customize-setting.php
382 382 * 383 383 * Results should be properly handled using another setting or callback. 384 384 */ 385 class WP_Customize_Header_Image_Setting extends WP_Customize_Setting {385 final class WP_Customize_Header_Image_Setting extends WP_Customize_Setting { 386 386 public $id = 'header_image_data'; 387 387 388 388 public function update( $value ) { … … 398 398 else 399 399 $custom_image_header->set_header_image( $value ); 400 400 } 401 } 402 No newline at end of file 401 } 402 403 final class WP_Customize_Background_Image_Setting extends WP_Customize_Setting { 404 public $id = 'background_image_thumb'; 405 406 public function update( $value ) { 407 remove_theme_mod( 'background_image_thumb' ); 408 } 409 } -
wp-includes/class-wp-customize-manager.php
781 781 'theme_supports' => 'custom-background', 782 782 ) ); 783 783 784 $this->add_setting( new WP_Customize_Background_Image_Setting( $this, 'background_image_thumb', array( 785 'theme_supports' => 'custom-background', 786 ) ) ); 787 784 788 $this->add_control( new WP_Customize_Background_Image_Control( $this ) ); 785 789 786 790 $this->add_setting( 'background_repeat', array(