-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase default menu items per REST page to 100 #21212
Comments
See also #21019 |
As discussed in the slack conversion, it is unwise to allow a unlimited query like this. The REST API returns a header of |
I don't disagree, just connecting the existing issues. :) |
@spacedmonkey It's also worth noting that (I believe this is still true) when making a request from the Gutenberg code using Also cross-linking #18869 which is also related, and which raised this 10-item-limit issue originally. |
There are now PRs on both repos |
Per discussion in the
#core-restapi
channel about the menus endpoints added in #20292, we should up the default per_page value for the new collections controllers to 100 (the maximum) as there are very few situations where you wouldn't want as comprehensive list of menu items as possible. We could also look at upping the maximum per_page for this controller specifically to a value above 100, as menus are usually already retrieved in one batch and there's less risk of custom meta and other situations that can make large collections of posts or other resources so expensive.The text was updated successfully, but these errors were encountered: