mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-21 11:44:36 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@39954 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1887,12 +1887,6 @@ class WP_Test_REST_Users_Controller extends WP_Test_REST_Controller_Testcase {
|
||||
$request->set_param( 'reassign', false );
|
||||
$response = $this->server->dispatch( $request );
|
||||
|
||||
// Not implemented in multisite.
|
||||
if ( is_multisite() ) {
|
||||
$this->assertErrorResponse( 'rest_cannot_delete', $response, 501 );
|
||||
return;
|
||||
}
|
||||
|
||||
$this->assertErrorResponse( 'rest_user_invalid_id', $response, 404 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user