Media JS: ensure that wp.media.frame (a static reference to the "current" Frame) is reset when a cached frame is opened.

Fixes #33458.


git-svn-id: https://develop.svn.wordpress.org/trunk@34254 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-09-17 00:09:40 +00:00
parent 54835433c5
commit 45c606576c

View File

@ -670,6 +670,7 @@
*/
frame: function() {
if ( this._frame ) {
wp.media.frame = this._frame;
return this._frame;
}
@ -1067,6 +1068,8 @@
workflow = this.add( id, options );
}
wp.media.frame = workflow;
return workflow.open();
},