Make WordPress Core


Ignore:
Timestamp:
11/16/2020 11:02:32 AM (4 years ago)
Author:
johnbillion
Message:

Docs: Corrections and improvements to inline docs relating to the REST API.

See #50768

File:
1 edited

Legend:

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

    r49536 r49610  
    131131 *                                          is 'null', the value cannot be set or updated. The function will be passed
    132132 *                                          the model object, like WP_Post.
    133  *     @type array|null $schema             Optional. The callback function used to create the schema for this field.
     133 *     @type array|null $schema             Optional. The schema for this field.
    134134 *                                          Default is 'null', no schema entry will be returned.
    135135 * }
     
    154154
    155155/**
    156  * Registers rewrite rules for the API.
     156 * Registers rewrite rules for the REST API.
    157157 *
    158158 * @since 4.4.0
     
    499499         * Filters the REST Server Class.
    500500         *
    501          * This filter allows you to adjust the server class used by the API, using a
     501         * This filter allows you to adjust the server class used by the REST API, using a
    502502         * different class to handle requests.
    503503         *
     
    510510
    511511        /**
    512          * Fires when preparing to serve an API request.
     512         * Fires when preparing to serve a REST API request.
    513513         *
    514514         * Endpoint objects should be created and register their hooks on this action rather
     
    803803
    804804/**
    805  * Filters the API response to include only a white-listed set of response object fields.
     805 * Filters the REST API response to include only a white-listed set of response object fields.
    806806 *
    807807 * @since 4.8.0
Note: See TracChangeset for help on using the changeset viewer.