Media Grid: `$.when` expects a splat. Disambiguation: change `cache` to `refresh` as the arg name for `_requery()`.
See [29490], #29145. git-svn-id: https://develop.svn.wordpress.org/trunk@29507 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8314367632
commit
c26ea8e3e5
|
@ -824,11 +824,11 @@ window.wp = window.wp || {};
|
||||||
/**
|
/**
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
_requery: function( cache ) {
|
_requery: function( refresh ) {
|
||||||
var props;
|
var props;
|
||||||
if ( this.props.get('query') ) {
|
if ( this.props.get('query') ) {
|
||||||
props = this.props.toJSON();
|
props = this.props.toJSON();
|
||||||
props.cache = ( true !== cache );
|
props.cache = ( true !== refresh || _.isUndefined( refresh ) );
|
||||||
this.mirror( Query.get( props ) );
|
this.mirror( Query.get( props ) );
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -5906,7 +5906,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( changed.length ) {
|
if ( changed.length ) {
|
||||||
$.when( changed ).then( function() {
|
$.when.apply( null, changed ).then( function() {
|
||||||
library._requery( true );
|
library._requery( true );
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue