diff --git a/wp-includes/rest-api/class-wp-rest-server.php b/wp-includes/rest-api/class-wp-rest-server.php index 25556962b4..ebf58de2bb 100644 --- a/wp-includes/rest-api/class-wp-rest-server.php +++ b/wp-includes/rest-api/class-wp-rest-server.php @@ -303,10 +303,10 @@ class WP_REST_Server { $request = new WP_REST_Request( $_SERVER['REQUEST_METHOD'], $path ); - $request->set_query_params( $_GET ); - $request->set_body_params( $_POST ); + $request->set_query_params( wp_unslash( $_GET ) ); + $request->set_body_params( wp_unslash( $_POST ) ); $request->set_file_params( $_FILES ); - $request->set_headers( $this->get_headers( $_SERVER ) ); + $request->set_headers( $this->get_headers( wp_unslash( $_SERVER ) ) ); $request->set_body( $this->get_raw_data() ); /* diff --git a/wp-includes/version.php b/wp-includes/version.php index ee52a87f0e..93f8170977 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-RC1-37162'; +$wp_version = '4.5-RC1-37163'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.