From 9bbc9789cea8bd23ae3d73a6e9c8fcafa2ff7804 Mon Sep 17 00:00:00 2001 From: Florian Ludwig Date: Sun, 4 Jan 2015 02:05:23 +0100 Subject: [PATCH] REST: Fix pagination headers for Customers response --- includes/api/class-wc-api-server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;