You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Media: Enable Media Library infinite scrolling and add an opt-out user option.
Infinite scrolling in the Media Library grid is now enabled by default.
Users can now opt out via a new "Infinite Scrolling" user option on the
profile screen, labeled "Disable infinite scrolling in the Media Library
grid view". The option is only shown to users with the `upload_files`
capability, since the attachment grid is unreachable without it.
Precedence is resolved as follows: the `media_library_infinite_scrolling`
filter takes precedence over everything, so a hooked filter always wins.
Absent a filter, the user's opt-out preference applies. Absent both, infinite
scrolling defaults to enabled.
Include unit tests covering persistence of the new user option and the
filter, preference, and default precedence.
Props tyxla, youknowriad, joedolson, sachinrajcp123.
Fixes #65564.
git-svn-id: https://develop.svn.wordpress.org/trunk@62632 602fd350-edb4-49c9-b593-d223f7449a82
0 commit comments