Make WordPress Core

Changeset 50068


Ignore:
Timestamp:
01/29/2021 02:40:42 AM (4 years ago)
Author:
antpb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/media/models/attachments.js

    r50067 r50068  
    384384    /**
    385385     * If the collection is a query, create and mirror an Attachments Query collection.
    386      *
    387      * @access private
    388      */
    389     _requery: function( refresh ) {
     386     *
     387     * @access private
     388     * @param {Boolean} refresh Deprecated, refresh parameter no longer used.
     389     */
     390    _requery: function() {
    390391        var props;
    391392        if ( this.props.get('query') ) {
Note: See TracChangeset for help on using the changeset viewer.