Media: Remove unused refresh from _requery.

In [50067] `props.cache` was removed as it was unused. This left a lingering unused `refresh` in the `_requery` function.

Props peterwilsoncc.
See #50025.


git-svn-id: https://develop.svn.wordpress.org/trunk@50068 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Anthony Burchell 2021-01-29 02:40:42 +00:00
parent a8b5b71590
commit 8aabbb6286

View File

@ -383,10 +383,11 @@ var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachmen
},
/**
* If the collection is a query, create and mirror an Attachments Query collection.
*
*
* @access private
* @param {Boolean} refresh Deprecated, refresh parameter no longer used.
*/
_requery: function( refresh ) {
_requery: function() {
var props;
if ( this.props.get('query') ) {
props = this.props.toJSON();