Media JS: ensure that `wp.media.frame` (a static reference to the "current" `Frame`) is reset when a cached frame is opened.
Fixes #33458. Built from https://develop.svn.wordpress.org/trunk@34254 git-svn-id: http://core.svn.wordpress.org/trunk@34218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
444509e246
commit
6759f04a24
|
@ -670,6 +670,7 @@
|
||||||
*/
|
*/
|
||||||
frame: function() {
|
frame: function() {
|
||||||
if ( this._frame ) {
|
if ( this._frame ) {
|
||||||
|
wp.media.frame = this._frame;
|
||||||
return this._frame;
|
return this._frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1067,6 +1068,8 @@
|
||||||
workflow = this.add( id, options );
|
workflow = this.add( id, options );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wp.media.frame = workflow;
|
||||||
|
|
||||||
return workflow.open();
|
return workflow.open();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-34253';
|
$wp_version = '4.4-alpha-34254';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue