[wp-trac] [WordPress Trac] #53557: REST API: Can't delete multiple widgets in a single batch request
WordPress Trac
noreply at wordpress.org
Wed Jun 30 05:50:29 UTC 2021
#53557: REST API: Can't delete multiple widgets in a single batch request
--------------------------+------------------------
Reporter: noisysocks | Owner: noisysocks
Type: defect (bug) | Status: assigned
Priority: high | Milestone: 5.8
Component: REST API | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+------------------------
If you attempt to delete (with `force=1`) multiple widgets in a single
batch request, only one widget is deleted.
Example request using https://httpie.io:
{{{
http -a admin:password POST http://wp-git-build.test/wp-json/batch/v1
requests:='[{"method":"DELETE","path":"/wp/v2/widgets/block-2?force=1"},{"method":"DELETE","path":"/wp/v2/widgets/block-3?force=1"},{"method":"DELETE","path":"/wp/v2/widgets/block-4?force=1"}]'
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53557>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list