[wp-trac] [WordPress Trac] #41388: Insert Media window does not remember state for custom tabs (was: Resets path since 4.8)
WordPress Trac
noreply at wordpress.org
Fri Jul 28 14:34:30 UTC 2017
#41388: Insert Media window does not remember state for custom tabs
-------------------------------+------------------------------
Reporter: angel8888 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.8
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by mordauk):
We don't know what change exactly caused the issue, we just know what the
behavior is.
In earlier versions media frames persisted, now they don't. For example,
Easy Digital Downloads has an integration with Amazon S3 (what angel8888
mentioned above) that uses an iframe to pull in files from Amazon S3.
Prior to a recent change, a site owner could open the media library from a
post edit screen, navigate to the file they wished to use, insert it into
the post (resulting in the media window being closed), then re-open the
add media screen and the media library would be in the same state as it
was after inserting the first file. Now, however, the media window resets
to the default state each time it is opened instead of remembering the
user's previous tab.
The tabs we add are done using the standard method that is shown here
https://codex.wordpress.org/Function_Reference/wp_iframe
It seems the problem with losing the previous state only occurs with
custom tabs. The default media tabs remember their state fine.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41388#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list