Reset the media modal to the library view after inserting a gallery. fixes #22151, see #21390, #21809.
git-svn-id: http://core.svn.wordpress.org/trunk@22156 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
70bd368ad8
commit
ebc9a34650
|
@ -122,6 +122,9 @@ var tb_position;
|
||||||
|
|
||||||
shortcode = view.gallery.shortcode( selection );
|
shortcode = view.gallery.shortcode( selection );
|
||||||
this.insert( shortcode.string() );
|
this.insert( shortcode.string() );
|
||||||
|
|
||||||
|
// Reset the workflow view to the library.
|
||||||
|
workflow.render('library');
|
||||||
}, this );
|
}, this );
|
||||||
|
|
||||||
return workflow;
|
return workflow;
|
||||||
|
|
Loading…
Reference in New Issue