Wordpress/tests
Timothy Jacobs d56906f5b0 REST API: Support a broader range of JSON media types.
Previously, we only supported `application/json` which prevented using subtypes like `application/activity+json`. This allows for the REST API to `json_decode` the body of requests using a JSON subtype `Content-Type`. Additionally, `wp_die()` now properly sends the error as JSON when a JSON subtype is specified in the `Accept` header.

Props pfefferle.
Fixes #49404.


git-svn-id: https://develop.svn.wordpress.org/trunk@49329 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-27 16:42:38 +00:00
..
e2e
gutenberg Editor: update packages; Port block supports to WordPress core. 2020-10-13 13:07:23 +00:00
phpunit REST API: Support a broader range of JSON media types. 2020-10-27 16:42:38 +00:00
qunit REST API: Regenerate wp-api-generated.js after [49276]. 2020-10-24 04:26:46 +00:00