We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1461081 commit 6d28ac8Copy full SHA for 6d28ac8
admin/user-handler.php
@@ -763,7 +763,7 @@ private function mungRoleFilters( $query ) {
763
public function filter__rest_user_query( $query_args, $request ) {
764
$threshold = get_option( $this->options_name )['quickedit_threshold_limit'];
765
$editors = $this->indexer->getEditors();
766
- if ( $editors && count( $editors ) <= $threshold ) {
+ if ( is_array( $editors ) && count( $editors ) <= $threshold ) {
767
$query_args['include'] = $editors;
768
}
769
$this->doingRestQuery = true;
0 commit comments