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

    r39913 r39954  
    129129                $keys = array_keys( $data['endpoints'][0]['args'] );
    130130                sort( $keys );
    131                 $this->assertEquals( array( 'context', 'password' ), $keys );
     131                $this->assertEquals( array( 'context', 'id', 'password' ), $keys );
    132132        }
    133133
Note: See TracChangeset for help on using the changeset viewer.