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:
parent
17f3cff4f5
commit
a2a8f675da
|
@ -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 );
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue