Changeset 49610
- Timestamp:
- 11/16/2020 11:02:32 AM (4 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-oembed-controller.php
r48526 r49610 11 11 * oEmbed API endpoint controller. 12 12 * 13 * Registers the API route and delivers the response data.13 * Registers the REST API route and delivers the response data. 14 14 * The output format (XML or JSON) is handled by the REST API. 15 15 * -
trunk/src/wp-includes/rest-api.php
r49536 r49610 131 131 * is 'null', the value cannot be set or updated. The function will be passed 132 132 * the model object, like WP_Post. 133 * @type array|null $schema Optional. The callback function used to create theschema for this field.133 * @type array|null $schema Optional. The schema for this field. 134 134 * Default is 'null', no schema entry will be returned. 135 135 * } … … 154 154 155 155 /** 156 * Registers rewrite rules for the API.156 * Registers rewrite rules for the REST API. 157 157 * 158 158 * @since 4.4.0 … … 499 499 * Filters the REST Server Class. 500 500 * 501 * This filter allows you to adjust the server class used by the API, using a501 * This filter allows you to adjust the server class used by the REST API, using a 502 502 * different class to handle requests. 503 503 * … … 510 510 511 511 /** 512 * Fires when preparing to serve a nAPI request.512 * Fires when preparing to serve a REST API request. 513 513 * 514 514 * Endpoint objects should be created and register their hooks on this action rather … … 803 803 804 804 /** 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. 806 806 * 807 807 * @since 4.8.0 -
trunk/src/wp-includes/rest-api/class-wp-rest-response.php
r47122 r49610 263 263 264 264 /** 265 * Filters extra CURIEs available on API responses.265 * Filters extra CURIEs available on REST API responses. 266 266 * 267 267 * CURIEs allow a shortened version of URI relations. This allows a more … … 285 285 * @since 4.5.0 286 286 * 287 * @param array $additional Additional CURIEs to register with the API.287 * @param array $additional Additional CURIEs to register with the REST API. 288 288 */ 289 289 $additional = apply_filters( 'rest_response_link_curies', array() ); -
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r49257 r49610 260 260 261 261 /** 262 * Handles serving a nAPI request.262 * Handles serving a REST API request. 263 263 * 264 264 * Matches the current server URI to a route and runs the first matching … … 287 287 * This is done because for authentications such as Application 288 288 * Passwords, we don't want it to be accepted unless the current HTTP 289 * request is a nAPI request, which can't always be identified early289 * request is a REST API request, which can't always be identified early 290 290 * enough in evaluation. 291 291 */ … … 368 368 * @since 4.4.0 369 369 * @deprecated 4.7.0 Use the {@see 'rest_authentication_errors'} filter to 370 * restrict access to the API.370 * restrict access to the REST API. 371 371 * 372 372 * @param bool $rest_enabled Whether the REST API is enabled. Default true. … … 450 450 451 451 /** 452 * Filters the API response.452 * Filters the REST API response. 453 453 * 454 454 * Allows modification of the response before returning. … … 457 457 * @since 4.5.0 Applied to embedded responses. 458 458 * 459 * @param WP_HTTP_Response $result Result to send to the client. Usually a WP_REST_Response.459 * @param WP_HTTP_Response $result Result to send to the client. Usually a `WP_REST_Response`. 460 460 * @param WP_REST_Server $this Server instance. 461 461 * @param WP_REST_Request $request Request used to generate the response. … … 476 476 477 477 /** 478 * Filters whether the request has already been served.478 * Filters whether the REST API request has already been served. 479 479 * 480 480 * Allow sending the request manually - by returning true, the API result … … 485 485 * @param bool $served Whether the request has already been served. 486 486 * Default false. 487 * @param WP_HTTP_Response $result Result to send to the client. Usually a WP_REST_Response.487 * @param WP_HTTP_Response $result Result to send to the client. Usually a `WP_REST_Response`. 488 488 * @param WP_REST_Request $request Request used to generate the response. 489 489 * @param WP_REST_Server $this Server instance. … … 501 501 502 502 /** 503 * Filters the API response.503 * Filters the REST API response. 504 504 * 505 505 * Allows modification of the response data after inserting … … 1249 1249 1250 1250 /** 1251 * Filters the API root index data.1251 * Filters the REST API root index data. 1252 1252 * 1253 1253 * This contains the data describing the API. This includes information -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php
r49300 r49610 426 426 427 427 /** 428 * Filters a revision returned from the API.428 * Filters a revision returned from the REST API. 429 429 * 430 430 * Allows modification of the revision right before it is returned. -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
r49303 r49610 1121 1121 1122 1122 /** 1123 * Filters a comment returned from the API.1123 * Filters a comment returned from the REST API. 1124 1124 * 1125 1125 * Allows modification of the comment right before it is returned. -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php
r48526 r49610 242 242 243 243 /** 244 * Filters a post type returned from the API.244 * Filters a post type returned from the REST API. 245 245 * 246 246 * Allows modification of the post type data right before it is returned. -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php
r47850 r49610 622 622 623 623 /** 624 * Filters a revision returned from the API.624 * Filters a revision returned from the REST API. 625 625 * 626 626 * Allows modification of the revision right before it is returned. -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r48840 r49610 829 829 830 830 /** 831 * Filters a term item returned from the API.831 * Filters a term item returned from the REST API. 832 832 * 833 833 * The dynamic portion of the hook name, `$this->taxonomy`, refers to the taxonomy slug.
Note: See TracChangeset
for help on using the changeset viewer.