Wordpress/tests/qunit
Andrew Ozz 4848b1e3aa REST API: Add support for continuing the post-processing of images after upload. Flow:
1. `POST /wp/v2/media`.
2. If the upload failed (HTTP 500 error), look for a response header with `X-WP-Upload-Attachment-ID` header that contains the newly created attachment ID.
3. `POST /wp/v2/media/{id}/post-process` with `{ "action": "create-image-subsizes" }`. This request may still fail, but it will save its progress.
4. On continued failure, `DELETE /wp/v2/media/{id}` to give up on the upload and instruct the user to resize their image before uploading.

Props TimothyBlynJacobs.
Fixes #47987.

git-svn-id: https://develop.svn.wordpress.org/trunk@46422 602fd350-edb4-49c9-b593-d223f7449a82
2019-10-07 17:04:49 +00:00
..
fixtures REST API: Add support for continuing the post-processing of images after upload. Flow: 2019-10-07 17:04:49 +00:00
vendor Customizer: Add QUnit tests for menus. 2015-08-03 19:27:27 +00:00
wp-admin/js QUnit: Include script dependencies for wp-a11y script to fix a TypeError. 2019-10-04 21:19:17 +00:00
wp-includes/js REST API: Fix failing tests after [43584] and [43585]. 2018-08-28 13:04:07 +00:00
.jshintrc Various JSHint fixes. see #26446. 2014-02-08 00:51:14 +00:00
index.html QUnit: Include script dependencies for wp-a11y script to fix a TypeError. 2019-10-04 21:19:17 +00:00