diff --git a/includes/api/class-wc-api-server.php b/includes/api/class-wc-api-server.php index fb0bbf75536..7f647258203 100644 --- a/includes/api/class-wc-api-server.php +++ b/includes/api/class-wc-api-server.php @@ -553,7 +553,7 @@ class WC_API_Server { if ( is_a( $query, 'WP_User_Query' ) ) { $page = $query->page; - $single = count( $query->get_results() ) > 1; + $single = count( $query->get_results() ) == 1; $total = $query->get_total(); $total_pages = $query->total_pages;