[wp-trac] [WordPress Trac] #31846: Using the browser's Back and Forward buttons doesn't update the media library

WordPress Trac noreply at wordpress.org
Fri Sep 18 00:13:31 UTC 2015


#31846: Using the browser's Back and Forward buttons doesn't update the media
library
-------------------------------------+-----------------------------
 Reporter:  Faison                   |       Owner:  wonderboymusic
     Type:  task (blessed)           |      Status:  reopened
 Priority:  normal                   |   Milestone:  Future Release
Component:  Media                    |     Version:  4.0
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  javascript
-------------------------------------+-----------------------------
Changes (by kucrut):

 * keywords:  needs-patch => has-patch needs-testing


Comment:

 What [attachment:31846.diff 31846.diff] does:
 - Adds a new `reset` route (`upload.php`) that closes the frame.
 - Fixes the `showItem` route to make sure clicking the back/forward button
 also updates the frame content.
 - Fixes the delete button to make sure the frame is closed when the
 attachment being edited is deleted (previously the frame only closes when
 you delete the initial attachment loaded).
 - Fixes the search handler to make sure the address and the search input
 value are in sync and prevents it from modifying the address when you
 initially load the page with a specified `item`.
 - Store both frames in `wp.media.frames` to avoid instantiating multiple
 edit frames.

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


More information about the wp-trac mailing list