Skip to content
This repository has been archived by the owner on Sep 24, 2018. It is now read-only.

Commit

Permalink
Merge pull request #1328 from Shelob9/patch-6
Browse files Browse the repository at this point in the history
Improve @return inline docs for rest_ensure_response()
  • Loading branch information
rmccue committed Jul 23, 2015
2 parents f5e4489 + dbf0f37 commit 06a978b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugin.php
Expand Up @@ -502,8 +502,7 @@ function rest_ensure_request( $request ) {
* immediately check for this value.
*
* @param WP_Error|WP_HTTP_ResponseInterface|mixed $response Response to check.
* @return mixed WP_Error if present, WP_HTTP_ResponseInterface if instance,
* otherwise WP_REST_Response.
* @return WP_Error|WP_HTTP_ResponseInterface|WP_REST_Response WP_Error if response generated an error, WP_HTTP_ResponseInterface if response is a already an instance, otherwise returns a new WP_REST_Response instance.
*/
function rest_ensure_response( $response ) {
if ( is_wp_error( $response ) ) {
Expand Down

0 comments on commit 06a978b

Please sign in to comment.