diff --git a/wp-includes/js/media-models.js b/wp-includes/js/media-models.js index abc0bc73a5..59b34430d5 100644 --- a/wp-includes/js/media-models.js +++ b/wp-includes/js/media-models.js @@ -458,7 +458,7 @@ window.wp = window.wp || {}; // are no filters for other properties, so observing will result in // false positives in those queries. allowed = [ 's', 'order', 'orderby', 'posts_per_page', 'post_mime_type' ]; - if ( _( this.args ).chain().keys().difference().isEmpty().value() ) + if ( _( this.args ).chain().keys().difference( allowed ).isEmpty().value() ) this.observe( Attachments.all ); },