Media Grid: `$.when` expects a splat. Disambiguation: change `cache` to `refresh` as the arg name for `_requery()`.
See [29490], #29145. Built from https://develop.svn.wordpress.org/trunk@29507 git-svn-id: http://core.svn.wordpress.org/trunk@29284 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7297f60992
commit
4d20246173
|
@ -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 ) );
|
||||
}
|
||||
},
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5906,7 +5906,7 @@
|
|||
}
|
||||
|
||||
if ( changed.length ) {
|
||||
$.when( changed ).then( function() {
|
||||
$.when.apply( null, changed ).then( function() {
|
||||
library._requery( true );
|
||||
} );
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue