mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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 );
|
||||
} );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user