[wp-trac] [WordPress Trac] #50105: Remove infinite scrolling behavior from the Media grid
WordPress Trac
noreply at wordpress.org
Mon Jun 14 20:49:20 UTC 2021
#50105: Remove infinite scrolling behavior from the Media grid
-------------------------------------+-------------------------------------
Reporter: afercia | Owner: joedolson
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.8
Component: Media | Version:
Severity: normal | Resolution: fixed
Keywords: has-screenshots needs- | Focuses: ui, accessibility,
dev-note commit | javascript
-------------------------------------+-------------------------------------
Changes (by joedolson):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"51145" 51145]:
{{{
#!CommitTicketReference repository="" revision="51145"
Media: Restore AJAX response data shape in media library.
Restore the original shape of the AJAX response data in the media library
after removing infinite scroll, and pass total number of attachments in
the response headers `X-WP-Total` and `X-WP-TotalPages`.
Improve backwards compatibility for plugins intercepting the ajax
response. Headers match the structure and count calculation used in REST
API responses.
Fix an issue with hiding the spinner after the load is completed and
ensure that the load more view is created when changing tabs in the media
library modal.
Follow up to [50829].
props adamsilverstein, spacedmonkey, joedolson.
Fixes #50105.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50105#comment:115>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list