- Timestamp:
- 02/03/2023 01:33:18 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-block-renderer-controller.php
r54402 r55210 502 502 $request = new WP_REST_Request( 'POST', self::$rest_api_route . self::$block_name ); 503 503 $request->set_param( 'context', 'edit' ); 504 $request->set_header( ' content-type', 'application/json' );504 $request->set_header( 'Content-Type', 'application/json' ); 505 505 $request->set_body( wp_json_encode( compact( 'attributes' ) ) ); 506 506 $response = rest_get_server()->dispatch( $request );
Note: See TracChangeset
for help on using the changeset viewer.