Changeset 37163 for trunk/src/wp-includes/rest-api/class-wp-rest-server.php
- Timestamp:
- 04/06/2016 09:01:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r37041 r37163 304 304 $request = new WP_REST_Request( $_SERVER['REQUEST_METHOD'], $path ); 305 305 306 $request->set_query_params( $_GET);307 $request->set_body_params( $_POST);306 $request->set_query_params( wp_unslash( $_GET ) ); 307 $request->set_body_params( wp_unslash( $_POST ) ); 308 308 $request->set_file_params( $_FILES ); 309 $request->set_headers( $this->get_headers( $_SERVER) );309 $request->set_headers( $this->get_headers( wp_unslash( $_SERVER ) ) ); 310 310 $request->set_body( $this->get_raw_data() ); 311 311
Note: See TracChangeset
for help on using the changeset viewer.