Make WordPress Core

Changeset 46069


Ignore:
Timestamp:
09/05/2019 11:04:05 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Remove extra spaces in various REST API DocBlocks.

See #47110.

Location:
trunk/src/wp-includes/rest-api
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/class-wp-rest-response.php

    r43582 r46069  
    7777     * @since 4.4.0
    7878     *
    79      * @param  string $rel  Link relation. Either an IANA registered type, or an absolute URL.
    80      * @param  string $href Optional. Only remove links for the relation matching the given href.
    81      *                      Default null.
     79     * @param string $rel  Link relation. Either an IANA registered type, or an absolute URL.
     80     * @param string $href Optional. Only remove links for the relation matching the given href.
     81     *                     Default null.
    8282     */
    8383    public function remove_link( $rel, $href = null ) {
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php

    r45932 r46069  
    475475     * @since 4.7.0
    476476     *
    477      * @param  string $object_type Optional. The object type.
     477     * @param string $object_type Optional. The object type.
    478478     * @return array Registered additional fields (if any), empty array if none or if the object type could
    479479     *               not be inferred.
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php

    r46068 r46069  
    369369     * @since 4.7.0
    370370     *
    371      * @param  WP_REST_Request $request Full details about the request.
     371     * @param WP_REST_Request $request Full details about the request.
    372372     * @return bool|WP_Error True if the request has access to delete the item, WP_Error object otherwise.
    373373     */
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php

    r45932 r46069  
    305305     * @since 4.7.0
    306306     *
    307      * @param  mixed           $value   The value for the setting.
    308      * @param  WP_REST_Request $request The request object.
    309      * @param  string          $param   The parameter name.
     307     * @param mixed           $value   The value for the setting.
     308     * @param WP_REST_Request $request The request object.
     309     * @param string          $param   The parameter name.
    310310     * @return mixed|WP_Error
    311311     */
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php

    r45813 r46069  
    139139     * @since 4.7.0
    140140     *
    141      * @param  WP_REST_Request $request Full details about the request.
     141     * @param WP_REST_Request $request Full details about the request.
    142142     * @return true|WP_Error True if the request has read access for the item, otherwise false or WP_Error object.
    143143     */
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php

    r45811 r46069  
    212212         * @since 5.0.0
    213213         *
    214          * @param array        $query_params JSON Schema-formatted collection parameters.
     214         * @param array $query_params JSON Schema-formatted collection parameters.
    215215         */
    216216        return apply_filters( 'rest_themes_collection_params', $query_params );
     
    222222     * @since 5.0.0
    223223     *
    224      * @param  string|array    $statuses  One or more theme statuses.
    225      * @param  WP_REST_Request $request   Full details about the request.
    226      * @param  string          $parameter Additional parameter to pass to validation.
     224     * @param string|array    $statuses  One or more theme statuses.
     225     * @param WP_REST_Request $request   Full details about the request.
     226     * @param string          $parameter Additional parameter to pass to validation.
    227227     * @return array|WP_Error A list of valid statuses, otherwise WP_Error object.
    228228     */
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php

    r45932 r46069  
    11231123     * @since 4.7.0
    11241124     *
    1125      * @param  mixed            $value   The username submitted in the request.
    1126      * @param  WP_REST_Request $request Full details about the request.
    1127      * @param  string           $param   The parameter name.
     1125     * @param mixed           $value   The username submitted in the request.
     1126     * @param WP_REST_Request $request Full details about the request.
     1127     * @param string          $param   The parameter name.
    11281128     * @return WP_Error|string The sanitized username, if valid, otherwise an error.
    11291129     */
     
    11521152     * @since 4.7.0
    11531153     *
    1154      * @param  mixed            $value   The password submitted in the request.
    1155      * @param  WP_REST_Request $request Full details about the request.
    1156      * @param  string           $param   The parameter name.
     1154     * @param mixed           $value   The password submitted in the request.
     1155     * @param WP_REST_Request $request Full details about the request.
     1156     * @param string          $param   The parameter name.
    11571157     * @return WP_Error|string The sanitized password, if valid, otherwise an error.
    11581158     */
  • trunk/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php

    r45932 r46069  
    514514     * @since 4.7.0
    515515     *
    516      * @param  mixed           $value   The meta value submitted in the request.
    517      * @param  WP_REST_Request $request Full details about the request.
    518      * @param  string          $param   The parameter name.
     516     * @param mixed           $value   The meta value submitted in the request.
     517     * @param WP_REST_Request $request Full details about the request.
     518     * @param string          $param   The parameter name.
    519519     * @return WP_Error|string The meta array, if valid, otherwise an error.
    520520     */
Note: See TracChangeset for help on using the changeset viewer.