[wp-trac] [WordPress Trac] #50244: Add bulk operation support to the Rest API

WordPress Trac noreply at wordpress.org
Wed Jun 24 15:01:15 UTC 2020


#50244: Add bulk operation support to the Rest API
--------------------------------------+--------------------------------
 Reporter:  andraganescu              |       Owner:  TimothyBlynJacobs
     Type:  feature request           |      Status:  assigned
 Priority:  high                      |   Milestone:  5.6
Component:  REST API                  |     Version:  4.4
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  performance
--------------------------------------+--------------------------------

Comment (by zieladam):

 @TimothyBlynJacobs

 > Passing an allow_batch keyword is now required.

 Awesome!

 > Implemented as a validate_callback option.

 Thank you!

 > Leaving the choice up to the caller feels weird to me. Maybe make it
 specific to the endpoint?

 Ah yes, it sounds like the best option indeed.

 Also, I am working on a PR to make WP_REST_Menu_Items_Controller
 compatible with this change. I will post a link here as soon as it's ready
 to share.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50244#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list