WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/26/2017 01:38:27 PM (5 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-users-controller.php

    r39913 r39954  
    18881888        $response = $this->server->dispatch( $request );
    18891889
    1890         // Not implemented in multisite.
    1891         if ( is_multisite() ) {
    1892             $this->assertErrorResponse( 'rest_cannot_delete', $response, 501 );
    1893             return;
    1894         }
    1895 
    18961890        $this->assertErrorResponse( 'rest_user_invalid_id', $response, 404 );
    18971891    }
Note: See TracChangeset for help on using the changeset viewer.