WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/30/2016 06:52:58 PM (4 years ago)
Author:
DrewAPicture
Message:

Docs: Add a slightly less ambiguous list of return types for rest_ensure_response().

See #38398.

File:
1 edited

Legend:

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

    r38832 r39037  
    444444 *
    445445 * @param WP_Error|WP_HTTP_Response|mixed $response Response to check.
    446  * @return mixed WP_Error if response generated an error, WP_HTTP_Response if response
    447  *               is a already an instance, otherwise returns a new WP_REST_Response instance.
     446 * @return WP_REST_Response|mixed If response generated an error, WP_Error, if response
     447 *                                is already an instance, WP_HTTP_Response, otherwise
     448 *                                returns a new WP_REST_Response instance.
    448449 */
    449450function rest_ensure_response( $response ) {
Note: See TracChangeset for help on using the changeset viewer.