Skip to content

Commit

Permalink
chore: fix return type for no action links
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinkrzeminski committed Oct 8, 2024
1 parent ac8796a commit 452adb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connectors/class-connector-buddypress.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 452adb1

Please sign in to comment.