Changeset 49610 for trunk/src/wp-includes/rest-api/class-wp-rest-server.php
- Timestamp:
- 11/16/2020 11:02:32 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.