[wp-trac] [WordPress Trac] #40029: Media endpoint can return wrong number of results

WordPress Trac noreply at wordpress.org
Fri Mar 3 22:35:12 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 jnylen0):

 I think there are also other situations where the pagination/count values
 returned by the API are not reliable.  We should investigate this more in
 general and either resolve these situations, or document this caveat and
 indicate that client code should be prepared to deal with this.

 This situation in particular is pretty edge-case since WordPress
 [https://core.trac.wordpress.org/browser/tags/4.7.2/src/wp-
 includes/post.php?marks=2467-2468,2486#L2465 should handle this correctly]
 under normal circumstances.  It would be good to see some repro steps if
 this is more common than I'm thinking.  See also #39881.

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


More information about the wp-trac mailing list