WordPress.org

Make WordPress Core

Ticket #47578: 47578.diff

File 47578.diff, 957 bytes (added by andizer, 19 months ago)
  • src/wp-includes/rest-api/class-wp-rest-server.php

     
    310310                $request->set_body_params( wp_unslash( $_POST ) );
    311311                $request->set_file_params( $_FILES );
    312312                $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() );
    314314
    315315                /*
    316316                 * HTTP method override for clients that can't use PUT/PATCH/DELETE. First, we check
     
    437437         */
    438438        public function response_to_data( $response, $embed ) {
    439439                $data  = $response->get_data();
    440                 $links = $this->get_compact_response_links( $response );
     440                $links = self::get_compact_response_links( $response );
    441441
    442442                if ( ! empty( $links ) ) {
    443443                        // Convert links to part of the data.