[wp-trac] [WordPress Trac] #43998: REST API: Permit unbounded per_page=-1 requests for authorized users

WordPress Trac noreply at wordpress.org
Tue Jun 19 22:47:18 UTC 2018


#43998: REST API: Permit unbounded per_page=-1 requests for authorized users
------------------------------------------+-----------------------
 Reporter:  danielbachhuber               |       Owner:  (none)
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  4.9.8
Component:  REST API                      |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:  rest-api
------------------------------------------+-----------------------

Comment (by adamsilverstein):

 I don't think adding support for unbound requests to the REST API is a
 good idea. It breaks the contract and is not scalable or performant. I
 posted an alternate fix for the Gutenberg author dropdown that avoids the
 need for adding unbound queries, if this gets merged we can close this.
 See https://github.com/WordPress/gutenberg/pull/7385

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


More information about the wp-trac mailing list