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

Ensure we handle raw data passed to the API #155

Merged
merged 1 commit into from Apr 29, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/class-wp-json-server.php
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