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
|
||||
*/
|
||||
_requery: function( cache ) {
|
||||
_requery: function( refresh ) {
|
||||
var props;
|
||||
if ( this.props.get('query') ) {
|
||||
props = this.props.toJSON();
|
||||
props.cache = ( true !== cache );
|
||||
props.cache = ( true !== refresh || _.isUndefined( refresh ) );
|
||||
this.mirror( Query.get( props ) );
|
||||
}
|
||||
},
|
||||
|
|
|
@ -5906,7 +5906,7 @@
|
|||
}
|
||||
|
||||
if ( changed.length ) {
|
||||
$.when( changed ).then( function() {
|
||||
$.when.apply( null, changed ).then( function() {
|
||||
library._requery( true );
|
||||
} );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue