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.

Built from https://develop.svn.wordpress.org/trunk@50068


git-svn-id: http://core.svn.wordpress.org/trunk@49769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
antpb 2021-01-29 02:41:57 +00:00
parent ffc2cc5617
commit 3dc428f0de
3 changed files with 5 additions and 4 deletions

View File

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

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.7-alpha-50067'; $wp_version = '5.7-alpha-50068';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.