CoreFiles by mySites.guru
class-wp-customize-filter-setting.php33 lines, 733 bytes, from wordpress-7.0.8.zip
Raw History Compare with 7.0.7
md5
5210fd90d6ea2d9fd0845c376676d123
sha1
ed23675be605afdbd2f6e30d0cd71ac0b30a8f22
sha256
8ced4c4100bf20b1820cae29ce2bb6e1aad0d3b39de6c59ef117beab42dde745
<?php
/**
 * Customize API: WP_Customize_Filter_Setting class
 *
 * @package WordPress
 * @subpackage Customize
 * @since 4.4.0
 */

/**
 * 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.
 *
 * @since 3.4.0
 *
 * @see WP_Customize_Setting
 */
class WP_Customize_Filter_Setting extends WP_Customize_Setting {

	/**
	 * Saves the value of the setting, using the related API.
	 *
	 * @since 3.4.0
	 * @since 7.0.0 Return type updated from void to true for compatibility with base class.
	 *
	 * @param mixed $value The value to update.
	 * @return true Always returns true.
	 */
	public function update( $value ) {
		return true;
	}
}

The same content is in 40 releases, WordPress 7.0-beta1 to 7.2-beta5. See them all, or every version of this file.