Changeset 47384
- Timestamp:
- 02/27/2020 08:07:31 PM (6 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
-
class-wp-customize-control.php (modified) (1 diff)
-
class-wp-customize-manager.php (modified) (6 diffs)
-
class-wp-customize-setting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-control.php
r47364 r47384 175 175 * @param string $id Control ID. 176 176 * @param array $args { 177 * Optional. Ar guments to override class property defaults.177 * Optional. Array of properties for the new Control object. Default empty array. 178 178 * 179 179 * @type int $instance_number Order in which this instance was created in relation -
trunk/src/wp-includes/class-wp-customize-manager.php
r47382 r47384 3161 3161 * @param int $user_id The user ID. 3162 3162 * @param array $args Adds the context to the cap. Typically the object ID. 3163 * @return array Capabilities.3163 * @return array Capabilities. 3164 3164 */ 3165 3165 public function grant_edit_post_capability_for_changeset( $caps, $cap, $user_id, $args ) { … … 3357 3357 * @param WP_Post $last_revision The last revision post object. 3358 3358 * @param WP_Post $post The post object. 3359 *3360 3359 * @return bool Whether a revision should be made. 3361 3360 */ … … 3681 3680 * @since 4.5.0 Return added WP_Customize_Setting instance. 3682 3681 * 3682 * @see WP_Customize_Setting::__construct() 3683 3683 * @link https://developer.wordpress.org/themes/customize-api 3684 3684 * 3685 3685 * @param WP_Customize_Setting|string $id Customize Setting object, or ID. 3686 * @param array $args { 3687 * Optional. Array of properties for the new WP_Customize_Setting. Default empty array. 3688 * 3689 * @type string $type Type of the setting. Default 'theme_mod'. 3690 * @type string $capability Capability required for the setting. Default 'edit_theme_options' 3691 * @type string|array $theme_supports Theme features required to support the panel. Default is none. 3692 * @type string $default Default value for the setting. Default is empty string. 3693 * @type string $transport Options for rendering the live preview of changes in Customizer. 3694 * Using 'refresh' makes the change visible by reloading the whole preview. 3695 * Using 'postMessage' allows a custom JavaScript to handle live changes. 3696 * Default is 'refresh'. 3697 * @type callable $validate_callback Server-side validation callback for the setting's value. 3698 * @type callable $sanitize_callback Callback to filter a Customize setting value in un-slashed form. 3699 * @type callable $sanitize_js_callback Callback to convert a Customize PHP setting value to a value that is 3700 * JSON serializable. 3701 * @type bool $dirty Whether or not the setting is initially dirty when created. 3702 * } 3703 * @return WP_Customize_Setting The instance of the setting that was added. 3686 * @param array $args Optional. Array of properties for the new Setting object. 3687 * See WP_Customize_Setting::__construct() for information 3688 * on accepted arguments. Default empty array. 3689 * @return WP_Customize_Setting The instance of the setting that was added. 3704 3690 */ 3705 3691 public function add_setting( $id, $args = array() ) { … … 3828 3814 * @type callable $active_callback Active callback. 3829 3815 * } 3830 * @return WP_Customize_Panel The instance of the panel that was added.3816 * @return WP_Customize_Panel The instance of the panel that was added. 3831 3817 */ 3832 3818 public function add_panel( $id, $args = array() ) { … … 3926 3912 * @type bool $description_hidden Hide the description behind a help icon, instead of inline above the first control. Default false. 3927 3913 * } 3928 * @return WP_Customize_Section The instance of the section that was added.3914 * @return WP_Customize_Section The instance of the section that was added. 3929 3915 */ 3930 3916 public function add_section( $id, $args = array() ) { … … 4005 3991 * See WP_Customize_Control::__construct() for information 4006 3992 * on accepted arguments. Default empty array. 4007 * @return WP_Customize_Control The instance of the control that was added.3993 * @return WP_Customize_Control The instance of the control that was added. 4008 3994 */ 4009 3995 public function add_control( $id, $args = array() ) { -
trunk/src/wp-includes/class-wp-customize-setting.php
r47383 r47384 157 157 * @param string $id A specific ID of the setting. 158 158 * Can be a theme mod or option name. 159 * @param array $args Setting arguments. 159 * @param array $args { 160 * Optional. Array of properties for the new Setting object. Default empty array. 161 * 162 * @type string $type Type of the setting. Default 'theme_mod'. 163 * @type string $capability Capability required for the setting. Default 'edit_theme_options' 164 * @type string|array $theme_supports Theme features required to support the panel. Default is none. 165 * @type string $default Default value for the setting. Default is empty string. 166 * @type string $transport Options for rendering the live preview of changes in Customizer. 167 * Using 'refresh' makes the change visible by reloading the whole preview. 168 * Using 'postMessage' allows a custom JavaScript to handle live changes. 169 * Default is 'refresh'. 170 * @type callable $validate_callback Server-side validation callback for the setting's value. 171 * @type callable $sanitize_callback Callback to filter a Customize setting value in un-slashed form. 172 * @type callable $sanitize_js_callback Callback to convert a Customize PHP setting value to a value that is 173 * JSON serializable. 174 * @type bool $dirty Whether or not the setting is initially dirty when created. 175 * } 160 176 */ 161 177 public function __construct( $manager, $id, $args = array() ) {
Note: See TracChangeset
for help on using the changeset viewer.