#30608 closed defect (bug) (fixed)
Media: toolbar not restored after leaving iframe-based content
Reported by: | mcsf | Owned by: | azaozz |
---|---|---|---|
Milestone: | 4.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Media | Keywords: | has-patch |
Focuses: | Cc: |
Description
Observable on WPCOM, could affect sites that extend the Media Manager. Steps to reproduce:
- Go to /wp-admin/post-new.php
- Select Insert Media
- Once the Media modal loads, select, if you have any, a view from the sidebar that loads an iframe. Such a view will replace the whole content + toolbar area. You might see a fake toolbar here if the iframe imitates it.
- Again from the sidebar, select, if you have any, a custom view (i.e., not Insert Media or Create Gallery) that does not load an iframe.
Expected: the bottom toolbar, containing an Insert button, should be visible.
Observed: the toolbar “disappears” when going from the iframe-based view to the non-iframe-based view.
I used quotes because the toolbar isn’t actually disappearing—it’s actually not reappearing after we leave the iframe.
I'm attaching a working patch for this.
cc @dd32 @azaozz @pento
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Thanks @mcsf for the patch.
Looks good to me as we are adding the
hide-toolbar
class iniframeContent()
on creating the iframe, so we should be removing it too.