Make WordPress Core


Ignore:
Timestamp:
01/26/2017 01:38:27 PM (10 years ago)
Author:
joehoyle
Message:

REST API: Unify object access handling for simplicity.

Rather than repeating ourselves, unifying the access into a single method keeps everything tidy. While we're at it, add in additional schema handling for common parameters.

See #38792.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-comments-controller.php

    r39922 r39954  
    838838
    839839                $response = $this->server->dispatch( $request );
    840                 $this->assertErrorResponse( 'rest_cannot_read', $response, 401 );
     840                $this->assertErrorResponse( 'rest_post_invalid_id', $response, 404 );
    841841        }
    842842
Note: See TracChangeset for help on using the changeset viewer.