Skip to content
This repository has been archived by the owner on Sep 24, 2018. It is now read-only.

Commit

Permalink
Ensure we handle raw data passed to the API
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccue committed Apr 29, 2014
1 parent 156ede9 commit be6bcc0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/class-wp-json-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,9 @@ public function dispatch() {
}
elseif ( $supported & self::ACCEPT_RAW ) {
$data = $this->get_raw_data();
if ( ! empty( $data ) ) {
$args = array_merge( $args, array( 'data' => $data ) );
}
}

$args['_method'] = $method;
Expand Down

0 comments on commit be6bcc0

Please sign in to comment.