This fixes the bug noted in #790 by ensuring that the media frame is set
to the correct state before rendering.
(Side note, it looks like this problem has always existed here, but
until recently, the media menu was hidden with CSS, so there was no way
to navigate out of the Insert Shortcode frame state...)
This fixes the bug noted in #790 by ensuring that the media frame is set to the correct state before rendering.
(Side note, it looks like this problem has always existed here, but until recently, the media menu was hidden with CSS, so there was no way to navigate out of the Insert Shortcode frame state...)