From 86794324c7d07c08b4e383af193994ecaf18bee9 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Wed, 21 Oct 2015 13:47:12 +0000 Subject: [PATCH] Docs: Improve the return description in the DocBlock for `rest_send_allow_header()`. Props danielbachhuber. Fixes #34374. git-svn-id: https://develop.svn.wordpress.org/trunk@35324 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/rest-api/rest-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/rest-api/rest-functions.php b/src/wp-includes/rest-api/rest-functions.php index d0e7cc0f99..947efce90e 100644 --- a/src/wp-includes/rest-api/rest-functions.php +++ b/src/wp-includes/rest-api/rest-functions.php @@ -449,7 +449,7 @@ function rest_handle_options_request( $response, $handler, $request ) { * @param WP_REST_Response $response Current response being served. * @param WP_REST_Server $server ResponseHandler instance (usually WP_REST_Server). * @param WP_REST_Request $request The request that was used to make current response. - * @return WP_REST_Response Current response being served. + * @return WP_REST_Response Response to be served, with "Allow" header if route has allowed methods. */ function rest_send_allow_header( $response, $server, $request ) { $matched_route = $response->get_matched_route();