Make WordPress Core


Ignore:
Timestamp:
11/11/2019 02:41:15 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: In various @return tags, list the expected type first, instead of WP_Error.

See #48303.

File:
1 edited

Legend:

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

    r46660 r46696  
    505505 * @since 4.4.0
    506506 *
    507  * @param WP_Error|WP_HTTP_Response|mixed $response Response to check.
     507 * @param WP_HTTP_Response|WP_Error|mixed $response Response to check.
    508508 * @return WP_REST_Response|mixed If response generated an error, WP_Error, if response
    509509 *                                is already an instance, WP_HTTP_Response, otherwise
     
    873873 *
    874874 * @param WP_Error|mixed $result Error from another authentication handler,
    875  *                               null if we should handle it, or another value
    876  *                               if not.
     875 *                               null if we should handle it, or another value if not.
    877876 * @return WP_Error|mixed|bool WP_Error if the cookie is invalid, the $result, otherwise true.
    878877 */
     
    10261025 * @param  WP_REST_Request  $request
    10271026 * @param  string           $param
    1028  * @return WP_Error|boolean
     1027 * @return true|WP_Error
    10291028 */
    10301029function rest_validate_request_arg( $value, $request, $param ) {
Note: See TracChangeset for help on using the changeset viewer.