Raw data goes unused when sent to an endpoint. #91

Closed
tlovett1 opened this Issue Feb 26, 2014 · 3 comments

Comments

Projects
None yet
3 participants
@tlovett1
Member

tlovett1 commented Feb 26, 2014

In class-wp-json-server.php, when dispatching callbacks if an endpoint expects raw data that data will end up going unused breaking the endpoint:

elseif ( $supported & self::ACCEPT_RAW ) {
    $data = $this->get_raw_data();
}
@rmccue

This comment has been minimized.

Show comment
Hide comment
@rmccue

rmccue Mar 4, 2014

Member

Confirmed, thanks for the report!

Member

rmccue commented Mar 4, 2014

Confirmed, thanks for the report!

@rmccue rmccue added the Bug label Mar 4, 2014

@rmccue rmccue added this to the 1.0 milestone Mar 4, 2014

@rachelbaker

This comment has been minimized.

Show comment
Hide comment
@rachelbaker

rachelbaker Apr 24, 2014

Member

@tlovett1 Would you be able to work up a patch for this?

Member

rachelbaker commented Apr 24, 2014

@tlovett1 Would you be able to work up a patch for this?

@tlovett1

This comment has been minimized.

Show comment
Hide comment
@tlovett1

tlovett1 Apr 24, 2014

Member

Sure!

Member

tlovett1 commented Apr 24, 2014

Sure!

@rachelbaker rachelbaker closed this in #155 Apr 29, 2014

rachelbaker added a commit that referenced this issue Apr 29, 2014

Merge pull request #155 from WP-API/handle-raw-data
Ensure we handle raw data passed to the API.  Fixes #91.

kellbot pushed a commit to kellbot/WP-API that referenced this issue Aug 1, 2014

Merge pull request #155 from WP-API/handle-raw-data
Ensure we handle raw data passed to the API.  Fixes #91.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment