class-wp-customize-background-image-setting.php 639 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Customize API: WP_Customize_Background_Image_Setting class
  4. *
  5. * @package WordPress
  6. * @subpackage Customize
  7. * @since 4.4.0
  8. */
  9. /**
  10. * Customizer Background Image Setting class.
  11. *
  12. * @since 3.4.0
  13. *
  14. * @see WP_Customize_Setting
  15. */
  16. final class WP_Customize_Background_Image_Setting extends WP_Customize_Setting {
  17. /**
  18. * Unique string identifier for the setting.
  19. *
  20. * @since 3.4.0
  21. * @var string
  22. */
  23. public $id = 'background_image_thumb';
  24. /**
  25. * @since 3.4.0
  26. *
  27. * @param mixed $value The value to update. Not used.
  28. */
  29. public function update( $value ) {
  30. remove_theme_mod( 'background_image_thumb' );
  31. }
  32. }