[wp-trac] [WordPress Trac] #60895: Add batch support to users REST API WP_REST_Users_Controller
WordPress Trac
noreply at wordpress.org
Wed Apr 3 07:00:15 UTC 2024
#60895: Add batch support to users REST API WP_REST_Users_Controller
-------------------------+-----------------------------
Reporter: alexminza | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Following the development discussions in #53063 and #50244 for some reason
batch support was not added to users.
We were working on importing a large number of users as part of a
migration project to WordPress / WooCommerce to discover that WP REST API
does not support batching for Users in `WP_REST_Users_Controller` since
`allow_batch` is not explicitly set to `true` in `register_rest_route`.
Is there a particular reason batching was not enabled for users?
Would it make sense to add this similarly to `WP_REST_Posts_Controller`?
https://core.trac.wordpress.org/changeset/52068/trunk/src/wp-includes
/rest-api/endpoints/class-wp-rest-posts-controller.php
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60895>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list