Merge pull request #7042 from krautnerds/rest-fix-pagination-headers-customers

Rest 1.0/2.0 Customers - Fix missing output of pagination headers
This commit is contained in:
Claudio Sanches 2015-01-05 13:27:38 -02:00
commit 85d2e60767
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -537,7 +537,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;