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:
parent
44dff206e4
commit
e3c7cf5cc1
|
@ -458,7 +458,7 @@ window.wp = window.wp || {};
|
||||||
// are no filters for other properties, so observing will result in
|
// are no filters for other properties, so observing will result in
|
||||||
// false positives in those queries.
|
// false positives in those queries.
|
||||||
allowed = [ 's', 'order', 'orderby', 'posts_per_page', 'post_mime_type' ];
|
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 );
|
this.observe( Attachments.all );
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue