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-setting.php

    r37982 r38121  
    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.
     
    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 ) {
     
    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.
     556         *
     557         * The dynamic portion of the hook name, `$this->ID`, refers to the setting ID.
    554558         *
    555559         * @since 4.6.0
     
    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
     
    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.
     
    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.
Note: See TracChangeset for help on using the changeset viewer.