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 7d10f6a commit 2fd9739
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,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 2fd9739

Please sign in to comment.