123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- if ( class_exists( 'WP_Customize_Setting' ) && ! class_exists( 'WP_Customize_Global_Styles_Setting' ) ) {
- /**
- * Customize API: WP_Customize_Global_Styles_Setting class
- *
- * This handles saving and retrieving of the value.
- *
- */
- /**
- * Custom Setting to handle WP Global_Styles.
- *
- * @see WP_Customize_Setting
- */
- final class WP_Customize_Global_Styles_Setting extends WP_Customize_Setting {
- /**
- * The setting type.
- *
- * @var string
- */
- public $type = 'global_styles';
- /**
- * Setting Transport
- *
- * @var string
- */
- public $transport = 'postMessage';
- /**
- * User value
- *
- * @var string
- */
- public $user_value = '';
- /**
- * Fetch the value of the setting.
- *
- * @see WP_Customize_Setting::value()
- *
- * @return string
- */
- public function value() {
- return $this->user_value;
- }
- }
- }
|