[wp-trac] [WordPress Trac] #53063: Add batch support to core REST resources

WordPress Trac noreply at wordpress.org
Wed Apr 3 06:54:11 UTC 2024


#53063: Add batch support to core REST resources
--------------------------------------+--------------------------------
 Reporter:  chrisvanpatten            |       Owner:  TimothyBlynJacobs
     Type:  enhancement               |      Status:  assigned
 Priority:  normal                    |   Milestone:  Future Release
Component:  REST API                  |     Version:  5.6
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+--------------------------------

Comment (by alexminza):

 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/53063#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list