Changeset 57623
- Timestamp:
- 02/13/2024 01:46:45 PM (6 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r57312 r57623 744 744 } 745 745 746 747 748 749 750 751 752 746 753 // Embedded resources get passed context=embed. 747 754 if ( empty( $request['context'] ) ) { -
trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php
r57108 r57623 19 19 protected static $supported_formats; 20 20 protected static $post_ids = array(); 21 21 22 protected static $total_posts = 30; 22 23 protected static $per_page = 50; … … 29 30 public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) { 30 31 self::$post_id = $factory->post->create(); 32 33 31 34 32 35 self::$superadmin_id = $factory->user->create( … … 222 225 sort( $keys ); 223 226 $this->assertSame( array( 'context', 'id', 'password' ), $keys ); 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 224 242 } 225 243 -
trunk/tests/phpunit/tests/rest-api/rest-server.php
r57147 r57623 930 930 $this->assertArrayNotHasKey( '_embedded', $result ); 931 931 $this->assertSame( 'data', $result['untouched'] ); 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 932 965 } 933 966
Note: See TracChangeset
for help on using the changeset viewer.