Make WordPress Core


Ignore:
Timestamp:
07/20/2016 04:56:21 PM (8 years ago)
Author:
DrewAPicture
Message:

Docs: Fix formatting, tense, verb conjugation, and other syntax for wp-includes/* elements introduced or changed in 4.6.

Part 1/2.

See #37318.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r38028 r38121  
    652652
    653653    /**
    654      * Return the sanitized value for a given setting from the request's POST data.
    655      *
    656      * @since 3.4.0
    657      * @since 4.1.1 Introduced `$default` parameter.
    658      * @since 4.6.0 Return `$default` when setting post value is invalid.
     654     * Returns the sanitized value for a given setting from the request's POST data.
     655     *
     656     * @since 3.4.0
     657     * @since 4.1.1 Introduced the `$default` parameter.
     658     * @since 4.6.0 `$default` is now returned early when the setting post value is invalid.
     659     * @access public
     660     *
    659661     * @see WP_REST_Server::dispatch()
    660662     * @see WP_Rest_Request::sanitize_params()
     
    988990
    989991    /**
    990      * Validate setting values.
     992     * Validates setting values.
    991993     *
    992994     * Sanitization is applied to the values before being passed for validation.
     
    996998     * @since 4.6.0
    997999     * @access public
     1000     *
    9981001     * @see WP_REST_Request::has_valid_params()
    9991002     * @see WP_Customize_Setting::validate()
     
    10271030
    10281031    /**
    1029      * Prepare setting validity for exporting to the client (JS).
     1032     * Prepares setting validity for exporting to the client (JS).
    10301033     *
    10311034     * Converts `WP_Error` instance into array suitable for passing into the
     
    10361039     *
    10371040     * @param true|WP_Error $validity Setting validity.
    1038      * @return true|array If `$validity` was `WP_Error` then array mapping the error
    1039      *                    codes to their respective `message` and `data` to pass
    1040      *                    into the `wp.customize.Notification` JS model.
     1041     * @return true|array If `$validity` was a WP_Error, the error codes will be array-mapped
     1042     *                    to their respective `message` and `data` to pass into the
     1043     *                    `wp.customize.Notification` JS model.
    10411044     */
    10421045    public function prepare_setting_validity_for_js( $validity ) {
     
    10811084         * Fires before save validation happens.
    10821085         *
    1083          * Plugins can add just-in-time `customize_validate_{$setting_id}` filters
     1086         * Plugins can add just-in-time {@see 'customize_validate_{$this->ID}'} filters
    10841087         * at this point to catch any settings registered after `customize_register`.
     1088         * The dynamic portion of the hook name, `$this->ID` referrs to the setting ID.
    10851089         *
    10861090         * @since 4.6.0
Note: See TracChangeset for help on using the changeset viewer.