From 2fd973952087138895a1cb7b735f906329c46141 Mon Sep 17 00:00:00 2001 From: Manzoor Wani Date: Wed, 11 Dec 2024 10:48:44 +0530 Subject: [PATCH] Phan needs a fan --- .../src/rest-endpoints/class-services-controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/packages/publicize/src/rest-endpoints/class-services-controller.php b/projects/packages/publicize/src/rest-endpoints/class-services-controller.php index 18e37df289cee..942607bf1ed35 100644 --- a/projects/packages/publicize/src/rest-endpoints/class-services-controller.php +++ b/projects/packages/publicize/src/rest-endpoints/class-services-controller.php @@ -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; }