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:
commit
85d2e60767
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue