WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #40270


Ignore:
Timestamp:
03/27/2017 02:33:30 AM (2 years ago)
Author:
dlh
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #40270 – Description

    initial v1  
    77In the post type assertions, it looks as though the `$response` can be a `WP_REST_Response`, so it passes `assertNotInstanceOf( 'WP_Error' )` but is still capable of returning a `WP_Error` via `as_error()`.
    88
    9 The rest of the assertions in those post type methods might make `as_error()` check unnecessary, though.
     9The rest of the assertions in those post type methods might make the `as_error()` check unnecessary, though.