Changeset 38121 for trunk/src/wp-includes/class-wp-customize-setting.php
- Timestamp:
- 07/20/2016 04:56:21 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-setting.php
r37982 r38121 465 465 466 466 /** 467 * Check user capabilities and theme supports, and then save467 * Checks user capabilities and theme supports, and then saves 468 468 * the value of the setting. 469 469 * 470 470 * @since 3.4.0 471 471 * @since 4.6.0 Return the result of updating the value. 472 * @access public 472 473 * 473 474 * @return false|void False if cap check fails or value isn't set or is invalid. … … 529 530 530 531 /** 531 * Validate an input.532 * Validates an input. 532 533 * 533 534 * @since 4.6.0 534 535 * @access public 536 * 535 537 * @see WP_REST_Request::has_valid_params() 536 538 * 537 539 * @param mixed $value Value to validate. 538 * @return true|WP_Error 540 * @return true|WP_Error True if the input was validated, otherwise WP_Error. 539 541 */ 540 542 public function validate( $value ) { … … 549 551 550 552 /** 551 * Validate a Customize setting value.553 * Validates a Customize setting value. 552 554 * 553 555 * Plugins should amend the `$validity` object via its `WP_Error::add()` method. 556 * 557 * The dynamic portion of the hook name, `$this->ID`, refers to the setting ID. 554 558 * 555 559 * @since 4.6.0 … … 696 700 * Filters a Customize setting value not handled as a theme_mod or option. 697 701 * 698 * The dynamic portion of the hook name, `$ this->id_date['base']`, refers to699 * the base slug of the setting name .702 * The dynamic portion of the hook name, `$id_base`, refers to 703 * the base slug of the setting name, initialized from `$this->id_data['base']`. 700 704 * 701 705 * For settings handled as theme_mods or options, see those corresponding … … 703 707 * 704 708 * @since 3.4.0 705 * @since 4.6.0 Added the `$this` setting instance as the second param .709 * @since 4.6.0 Added the `$this` setting instance as the second parameter. 706 710 * 707 711 * @param mixed $default The setting default value. Default empty. … … 751 755 752 756 /** 753 * Getthe data to export to the client via JSON.757 * Retrieves the data to export to the client via JSON. 754 758 * 755 759 * @since 4.6.0 760 * @access public 756 761 * 757 762 * @return array Array of parameters passed to JavaScript.
Note: See TracChangeset
for help on using the changeset viewer.