[wp-trac] [WordPress Trac] #54091: Attachment details pane navigation not working after opening 81st (or greater) item and refreshing the browser

WordPress Trac noreply at wordpress.org
Thu Nov 11 18:49:16 UTC 2021


#54091: Attachment details pane navigation not working after opening 81st (or
greater) item and refreshing the browser
--------------------------+-----------------------------
 Reporter:  ppetrov2c     |       Owner:  joedolson
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  5.9
Component:  Media         |     Version:  5.8
 Severity:  trivial       |  Resolution:
 Keywords:                |     Focuses:  ui, javascript
--------------------------+-----------------------------

Comment (by joedolson):

 This is directly caused by the fact that if you load more, then refresh
 the page, the collection is reset to the first 80 items, regardless of the
 additional items you've loaded. This doesn't stop a currently selected
 item from loading, but does break the item navigation, since the current
 item is effectively not in the collection.

 There are a couple possible paths I can think of:

 1) Implement a URL parameter that tracks the collection, so a refresh
 reloads everything previously loaded and the collection is inclusive. This
 would also be beneficial for introducing pagination.

 2) Introduce an update to the previous item navigation so that it goes
 back to the last item in the current collection if the item is not itself
 in the current collection. Probably easier to implement, but I'm not sure
 it creates a particularly useful UI.

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


More information about the wp-trac mailing list