[wp-trac] [WordPress Trac] #50105: Remove infinite scrolling behavior from the Media grid

WordPress Trac noreply at wordpress.org
Thu Jul 15 10:24:47 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,
  testing                            |  javascript
-------------------------------------+-------------------------------------
Changes (by wildworks):

 * keywords:  has-screenshots needs-dev-note has-patch commit => has-
     screenshots needs-testing


Comment:

 I used the `media_library_infinite_scrolling` filter in WordPress 5.8-RC3,
 but infinite scroll is not enabled.

 Here is the code.

 {{{
 add_filter( 'media_library_infinite_scrolling', '__return_true' );
 }}}


 And I found a javascript error on the Media Library page.
 [[Image(https://i.gyazo.com/31de01f6d254557758bdf774068c4baf.png)]]

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


More information about the wp-trac mailing list