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-attachments-controller.php

    r39848 r39954  
    183183                $keys = array_keys( $data['endpoints'][0]['args'] );
    184184                sort( $keys );
    185                 $this->assertEquals( array( 'context' ), $keys );
     185                $this->assertEquals( array( 'context', 'id' ), $keys );
    186186        }
    187187
Note: See TracChangeset for help on using the changeset viewer.