[wp-trac] [WordPress Trac] #40029: Media endpoint can return wrong number of results
WordPress Trac
noreply at wordpress.org
Mon Mar 6 07:01:28 UTC 2017
#40029: Media endpoint can return wrong number of results
----------------------------+------------------------------
Reporter: wonderboymusic | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
----------------------------+------------------------------
Comment (by rmccue):
This is basically only an issue if plugins filter an individual post out
using permissions. We should document this behaviour, but I don't see that
there's a great way to "fix" it (i.e. always return the number you asked
for). It's similar to requesting 10 items, but only 7 exist (i.e. small
site, or at the end of pagination). The `per_page` value is an upper-bound
only.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40029#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list