Skip to content

Commit

Permalink
Phan needs a fan
Browse files Browse the repository at this point in the history
  • Loading branch information
manzoorwanijk committed Dec 11, 2024
1 parent 5bb2606 commit 8533dc0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ public function get_items( $request ) {
}

$response = rest_ensure_response( $items );
$response->header( 'X-WP-Total', count( $items ) );
$response->header( 'X-WP-TotalPages', 1 );
$response->header( 'X-WP-Total', (string) count( $items ) );
$response->header( 'X-WP-TotalPages', '1' );

return $response;
}
Expand Down

0 comments on commit 8533dc0

Please sign in to comment.