WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/26/2017 01:46:54 PM (3 years ago)
Author:
ocean90
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.

Merge of [39954] to the 4.7 branch.

See #38792.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/tests/phpunit/tests/rest-api/rest-users-controller.php

    r39844 r39957  
    18501850        $response = $this->server->dispatch( $request );
    18511851
    1852         // Not implemented in multisite.
    1853         if ( is_multisite() ) {
    1854             $this->assertErrorResponse( 'rest_cannot_delete', $response, 501 );
    1855             return;
    1856         }
    1857 
    18581852        $this->assertErrorResponse( 'rest_user_invalid_id', $response, 404 );
    18591853    }
Note: See TracChangeset for help on using the changeset viewer.