You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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

3 年之前
12345678910111213141516171819202122232425262728
  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. public $id = 'background_image_thumb';
  18. /**
  19. * @since 3.4.0
  20. *
  21. * @param $value
  22. */
  23. public function update( $value ) {
  24. remove_theme_mod( 'background_image_thumb' );
  25. }
  26. }