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

git-svn-id: http://core.svn.wordpress.org/trunk@22149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jon Cave 2012-10-09 22:55:49 +00:00
parent 44dff206e4
commit e3c7cf5cc1
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 );
},