diff --git a/connectors/class-connector-buddypress.php b/connectors/class-connector-buddypress.php index 490516fbb..f21c98462 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 array(); } // In the links, we also need to check the functions themselves as they're dependent on the BuddyPress module being enabled.