Reset the media modal to the library view after inserting a gallery. fixes #22151, see #21390, #21809.
git-svn-id: https://develop.svn.wordpress.org/trunk@22156 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
db21ce7189
commit
a04930b340
@ -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
Block a user