Skip to content

Commit 6d28ac8

Browse files
committed
#10 Fix php8 rejection of count (notArray)
1 parent 1461081 commit 6d28ac8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

admin/user-handler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ private function mungRoleFilters( $query ) {
763763
public function filter__rest_user_query( $query_args, $request ) {
764764
$threshold = get_option( $this->options_name )['quickedit_threshold_limit'];
765765
$editors = $this->indexer->getEditors();
766-
if ( $editors && count( $editors ) <= $threshold ) {
766+
if ( is_array( $editors ) && count( $editors ) <= $threshold ) {
767767
$query_args['include'] = $editors;
768768
}
769769
$this->doingRestQuery = true;

0 commit comments

Comments
 (0)