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

git-svn-id: https://develop.svn.wordpress.org/trunk@22149 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jon Cave 2012-10-09 22:55:49 +00:00
parent 17f3cff4f5
commit a2a8f675da
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
},