X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/8f374b7233bc2815ccc387e448d208c5434eb961..8a4706fdeb1ae30268e510df6ccf3c39b3028059:/wp-includes/class-wp-customize-setting.php diff --git a/wp-includes/class-wp-customize-setting.php b/wp-includes/class-wp-customize-setting.php index c4cff0e2..dd49f79f 100644 --- a/wp-includes/class-wp-customize-setting.php +++ b/wp-includes/class-wp-customize-setting.php @@ -1,12 +1,11 @@ _post_value ) ) @@ -138,7 +140,7 @@ class WP_Customize_Setting { * * @since 3.4.0 * - * @param $value mixed The value to sanitize. + * @param mixed $value The value to sanitize. * @return mixed Null if an input isn't valid, otherwise the sanitized value. */ public function sanitize( $value ) { @@ -151,7 +153,7 @@ class WP_Customize_Setting { * * @since 3.4.0 * - * @param $value mixed The value to update. + * @param mixed $value The value to update. * @return mixed The result of saving the value. */ protected function update( $value ) { @@ -172,7 +174,7 @@ class WP_Customize_Setting { * * @since 3.4.0 * - * @param $value mixed The value to update. + * @param mixed $value The value to update. * @return mixed The result of saving the value. */ protected function _update_theme_mod( $value ) { @@ -192,7 +194,7 @@ class WP_Customize_Setting { * * @since 3.4.0 * - * @param $value mixed The value to update. + * @param mixed $value The value to update. * @return mixed The result of saving the value. */ protected function _update_option( $value ) { @@ -276,7 +278,7 @@ class WP_Customize_Setting { * @param $root * @param $keys * @param bool $create Default is false. - * @return null|array + * @return null|array Keys are 'root', 'node', and 'key'. */ final protected function multidimensional( &$root, $keys, $create = false ) { if ( $create && empty( $root ) ) @@ -372,19 +374,36 @@ class WP_Customize_Setting { * A setting that is used to filter a value, but will not save the results. * * Results should be properly handled using another setting or callback. + * + * @package WordPress + * @subpackage Customize + * @since 3.4.0 */ class WP_Customize_Filter_Setting extends WP_Customize_Setting { - public function update() {} + + /** + * @since 3.4.0 + */ + public function update( $value ) {} } /** * A setting that is used to filter a value, but will not save the results. * * Results should be properly handled using another setting or callback. + * + * @package WordPress + * @subpackage Customize + * @since 3.4.0 */ final class WP_Customize_Header_Image_Setting extends WP_Customize_Setting { public $id = 'header_image_data'; + /** + * @since 3.4.0 + * + * @param $value + */ public function update( $value ) { global $custom_image_header; @@ -400,9 +419,20 @@ final class WP_Customize_Header_Image_Setting extends WP_Customize_Setting { } } +/** + * @package WordPress + * @subpackage Customize + * @since 3.4.0 + */ final class WP_Customize_Background_Image_Setting extends WP_Customize_Setting { public $id = 'background_image_thumb'; + /** + * @since 3.4.0 + * @uses remove_theme_mod() + * + * @param $value + */ public function update( $value ) { remove_theme_mod( 'background_image_thumb' ); }