From 452adb138020f097bb4aa6cf06e23436c219886f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Krzemin=CC=81ski?= Date: Tue, 8 Oct 2024 14:01:29 +0200 Subject: [PATCH] chore: fix return type for no action links --- connectors/class-connector-buddypress.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectors/class-connector-buddypress.php b/connectors/class-connector-buddypress.php index 12810fae3..490516fbb 100644 --- a/connectors/class-connector-buddypress.php +++ b/connectors/class-connector-buddypress.php @@ -176,7 +176,7 @@ public function action_links( $links, $record ) { // Check we have access to BuddyPress on this blog and that the user will have access to the links. if ( ! $this->is_dependency_satisfied() || ! bp_current_user_can_moderate() ) { - return; + return []; } // In the links, we also need to check the functions themselves as they're dependent on the BuddyPress module being enabled.