Ticket #47578: 47578.diff
File 47578.diff, 957 bytes (added by , 19 months ago) |
---|
-
src/wp-includes/rest-api/class-wp-rest-server.php
310 310 $request->set_body_params( wp_unslash( $_POST ) ); 311 311 $request->set_file_params( $_FILES ); 312 312 $request->set_headers( $this->get_headers( wp_unslash( $_SERVER ) ) ); 313 $request->set_body( $this->get_raw_data() );313 $request->set_body( self::get_raw_data() ); 314 314 315 315 /* 316 316 * HTTP method override for clients that can't use PUT/PATCH/DELETE. First, we check … … 437 437 */ 438 438 public function response_to_data( $response, $embed ) { 439 439 $data = $response->get_data(); 440 $links = $this->get_compact_response_links( $response );440 $links = self::get_compact_response_links( $response ); 441 441 442 442 if ( ! empty( $links ) ) { 443 443 // Convert links to part of the data.