[wp-trac] [WordPress Trac] #41866: REST API throws error when displaying an unlimited number of posts in a request
WordPress Trac
noreply at wordpress.org
Wed Sep 13 17:51:28 UTC 2017
#41866: REST API throws error when displaying an unlimited number of posts in a
request
-------------------------+-------------------------------------------------
Reporter: | Owner:
dpsjfveloso1 | Status: closed
Type: defect | Milestone: Awaiting Review
(bug) | Version: trunk
Priority: normal | Resolution: invalid
Component: REST API | Focuses: administration, template,
Severity: normal | multisite, rest-api, performance
Keywords: close |
-------------------------+-------------------------------------------------
Changes (by JPry):
* keywords: => close
* status: new => closed
* resolution: => invalid
Comment:
Hi @dpsjfveloso1,
Thanks for taking the time to make this report, and welcome to Trac! This
particular behavior is by design. As described in [https://github.com/WP-
API/WP-API/issues/2759#issuecomment-251809005 this comment] from the WP-
API GitHub repo, querying for all posts should be done via iteration,
rather than a single massive query.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41866#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list