Changeset 21354 for trunk/wp-includes/class-wp-customize-setting.php
- Timestamp:
- 07/26/2012 09:45:33 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-customize-setting.php
r21053 r21354 1 1 <?php 2 2 /** 3 * Customize Setting Class 3 * Customize Setting Class. 4 4 * 5 5 * @package WordPress … … 7 7 * @since 3.4.0 8 8 */ 9 10 9 class WP_Customize_Setting { 11 10 public $manager; … … 29 28 * @since 3.4.0 30 29 * 30 * @param WP_Customize_Manager $manager 31 31 * @param string $id An specific ID of the setting. Can be a 32 32 * theme mod or option name. 33 33 * @param array $args Setting arguments. 34 * @return WP_Customize_Setting 34 35 */ 35 36 function __construct( $manager, $id, $args = array() ) { … … 88 89 * 89 90 * @since 3.4.0 90 * 91 * @param mixed Old value. 91 * @uses WP_Customize_Setting::multidimensional_replace() 92 * 93 * @param mixed $original Old value. 92 94 * @return mixed New or old value. 93 95 */ … … 119 121 * @since 3.4.0 120 122 * 121 * @param $default mixedA default value which is used as a fallback. Default is null.122 * @return mixed Either the default value on failure orsanitized value.123 * @param mixed $default A default value which is used as a fallback. Default is null. 124 * @return mixed The default value on failure, otherwise the sanitized value. 123 125 */ 124 126 public final function post_value( $default = null ) { … … 139 141 * @since 3.4.0 140 142 * 141 * @param $value mixedThe value to sanitize.143 * @param mixed $value The value to sanitize. 142 144 * @return mixed Null if an input isn't valid, otherwise the sanitized value. 143 145 */ … … 152 154 * @since 3.4.0 153 155 * 154 * @param $value mixedThe value to update.156 * @param mixed $value The value to update. 155 157 * @return mixed The result of saving the value. 156 158 */ … … 173 175 * @since 3.4.0 174 176 * 175 * @param $value mixedThe value to update.177 * @param mixed $value The value to update. 176 178 * @return mixed The result of saving the value. 177 179 */ … … 193 195 * @since 3.4.0 194 196 * 195 * @param $value mixedThe value to update.197 * @param mixed $value The value to update. 196 198 * @return mixed The result of saving the value. 197 199 */ … … 277 279 * @param $keys 278 280 * @param bool $create Default is false. 279 * @return null|array 281 * @return null|array Keys are 'root', 'node', and 'key'. 280 282 */ 281 283 final protected function multidimensional( &$root, $keys, $create = false ) { … … 373 375 * 374 376 * Results should be properly handled using another setting or callback. 377 * 378 * @package WordPress 379 * @subpackage Customize 380 * @since 3.4.0 375 381 */ 376 382 class WP_Customize_Filter_Setting extends WP_Customize_Setting { 383 384 /** 385 * @since 3.4.0 386 */ 377 387 public function update() {} 378 388 } … … 382 392 * 383 393 * Results should be properly handled using another setting or callback. 394 * 395 * @package WordPress 396 * @subpackage Customize 397 * @since 3.4.0 384 398 */ 385 399 final class WP_Customize_Header_Image_Setting extends WP_Customize_Setting { 386 400 public $id = 'header_image_data'; 387 401 402 /** 403 * @since 3.4.0 404 * 405 * @param $value 406 */ 388 407 public function update( $value ) { 389 408 global $custom_image_header; … … 401 420 } 402 421 422 /** 423 * @package WordPress 424 * @subpackage Customize 425 * @since 3.4.0 426 */ 403 427 final class WP_Customize_Background_Image_Setting extends WP_Customize_Setting { 404 428 public $id = 'background_image_thumb'; 405 429 430 /** 431 * @since 3.4.0 432 * @uses remove_theme_mod() 433 * 434 * @param $value 435 */ 406 436 public function update( $value ) { 407 437 remove_theme_mod( 'background_image_thumb' );
Note: See TracChangeset
for help on using the changeset viewer.