Changeset 40081 for branches/4.7
- Timestamp:
- 02/19/2017 04:35:28 AM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r39957 r40081 1759 1759 'type' => 'string', 1760 1760 'enum' => array_keys( get_post_stati( array( 'internal' => false ) ) ), 1761 'context' => array( ' edit' ),1761 'context' => array( 'view', 'edit' ), 1762 1762 ), 1763 1763 'type' => array( -
branches/4.7/tests/phpunit/includes/testcase-rest-post-type-controller.php
r38832 r40081 135 135 } 136 136 137 $this->assertEquals( $post->post_status, $data['status'] ); 137 138 $this->assertEquals( $post->guid, $data['guid']['rendered'] ); 138 139 139 140 if ( 'edit' === $context ) { 140 141 $this->assertEquals( $post->guid, $data['guid']['raw'] ); 141 $this->assertEquals( $post->post_status, $data['status'] );142 142 143 143 if ( '0000-00-00 00:00:00' === $post->post_date_gmt ) {
Note: See TracChangeset
for help on using the changeset viewer.