WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/11/12 20:49:45 (6 years ago)
Author:
nacin
Message:

Theme Customizer: Remove background_image_thumb when saving settings. fixes #20871.

This prevents the background_image and background_image_thumb settings from getting out of sync.
In 3.5 we can consider using background-size on Appearance > Background, eliminating _thumb.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-customize-manager.php

    r21037 r21053  
    781781            'theme_supports' => 'custom-background', 
    782782        ) ); 
     783 
     784        $this->add_setting( new WP_Customize_Background_Image_Setting( $this, 'background_image_thumb', array( 
     785            'theme_supports' => 'custom-background', 
     786        ) ) ); 
    783787 
    784788        $this->add_control( new WP_Customize_Background_Image_Control( $this ) ); 
Note: See TracChangeset for help on using the changeset viewer.