WordPress.org

Make WordPress Core

Changeset 22149


Ignore:
Timestamp:
10/09/2012 10:55:49 PM (6 years ago)
Author:
duck_
Message:

Remove allowed query args before checking isEmpty() in Query model. See #21390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-models.js

    r22137 r22149  
    459459            // false positives in those queries.
    460460            allowed = [ 's', 'order', 'orderby', 'posts_per_page', 'post_mime_type' ];
    461             if ( _( this.args ).chain().keys().difference().isEmpty().value() )
     461            if ( _( this.args ).chain().keys().difference( allowed ).isEmpty().value() )
    462462                this.observe( Attachments.all );
    463463        },
Note: See TracChangeset for help on using the changeset viewer.