@@ -464,11 +464,12 @@ final public function _multidimensional_preview_filter( $original ) {
464464 }
465465
466466 /**
467- * Check user capabilities and theme supports, and then save
467+ * Checks user capabilities and theme supports, and then saves
468468 * the value of the setting.
469469 *
470470 * @since 3.4.0
471471 * @since 4.6.0 Return the result of updating the value.
472+ * @access public
472473 *
473474 * @return false|void False if cap check fails or value isn't set or is invalid.
474475 */
@@ -528,14 +529,15 @@ public function sanitize( $value ) {
528529 }
529530
530531 /**
531- * Validate an input.
532+ * Validates an input.
532533 *
533534 * @since 4.6.0
534535 * @access public
536+ *
535537 * @see WP_REST_Request::has_valid_params()
536538 *
537539 * @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.
539541 */
540542 public function validate ( $ value ) {
541543 if ( is_wp_error ( $ value ) ) {
@@ -548,10 +550,12 @@ public function validate( $value ) {
548550 $ validity = new WP_Error ();
549551
550552 /**
551- * Validate a Customize setting value.
553+ * Validates a Customize setting value.
552554 *
553555 * Plugins should amend the `$validity` object via its `WP_Error::add()` method.
554556 *
557+ * The dynamic portion of the hook name, `$this->ID`, refers to the setting ID.
558+ *
555559 * @since 4.6.0
556560 *
557561 * @param WP_Error $validity Filtered from `true` to `WP_Error` when invalid.
@@ -695,14 +699,14 @@ public function value() {
695699 /**
696700 * Filters a Customize setting value not handled as a theme_mod or option.
697701 *
698- * The dynamic portion of the hook name, `$this->id_date['base'] `, refers to
699- * 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']` .
700704 *
701705 * For settings handled as theme_mods or options, see those corresponding
702706 * functions for available hooks.
703707 *
704708 * @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 .
706710 *
707711 * @param mixed $default The setting default value. Default empty.
708712 * @param WP_Customize_Setting $this The setting instance.
@@ -750,9 +754,10 @@ public function js_value() {
750754 }
751755
752756 /**
753- * Get the data to export to the client via JSON.
757+ * Retrieves the data to export to the client via JSON.
754758 *
755759 * @since 4.6.0
760+ * @access public
756761 *
757762 * @return array Array of parameters passed to JavaScript.
758763 */
0 commit comments