From 1ee81d7ac1c80a7726fd283108cd4239210ca6f6 Mon Sep 17 00:00:00 2001 From: Manzoor Wani Date: Mon, 13 May 2024 10:48:24 +0530 Subject: [PATCH] Always return an empty array for connections --- projects/packages/publicize/src/class-publicize.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/projects/packages/publicize/src/class-publicize.php b/projects/packages/publicize/src/class-publicize.php index a7d0666dea6ac..e33d29a3f648c 100644 --- a/projects/packages/publicize/src/class-publicize.php +++ b/projects/packages/publicize/src/class-publicize.php @@ -241,7 +241,7 @@ public function get_connections( $service_name, $_blog_id = false, $_user_id = f /** * Get all connections for a specific user. * - * @return array|false + * @return array */ public function get_all_connections_for_user() { $connections = $this->get_all_connections(); @@ -269,11 +269,8 @@ public function get_all_connections_for_user() { } } } - - return $connections_to_return; } - - return false; + return $connections_to_return; } /**