Skip to content

Commit

Permalink
Merge pull request #1634 from xwp/chore/fix-lint-issues
Browse files Browse the repository at this point in the history
Chore/fix lint issues
  • Loading branch information
marcinkrzeminski authored Nov 21, 2024
2 parents 7ad457e + 6e81e58 commit 628ccdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions classes/class-connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public function log( $message, $args, $object_id, $context, $action, $user_id =
/**
* Override the data logged. Returning false to this filter will stop the data from being logged.
* Examples of this filter in use can be found in some of the custom connectors.
*
* @see Connector_ACF::log_override()
*
* @return array|false An array of the data to be logged or false if it should not be logged.
Expand Down
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 array();
}

// 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 628ccdd

Please sign in to comment.