From 5d66b864d54f098295f185b9b83ebbd38680a6a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Krzemin=CC=81ski?= Date: Thu, 21 Nov 2024 13:07:21 +0100 Subject: [PATCH 1/2] Fix PHPCS issues --- classes/class-connector.php | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/class-connector.php b/classes/class-connector.php index d36da3f3b..b2652b022 100644 --- a/classes/class-connector.php +++ b/classes/class-connector.php @@ -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. From 6e81e580e59b6c20913cf6600d18faee4810dee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Krzemin=CC=81ski?= Date: Thu, 21 Nov 2024 13:07:47 +0100 Subject: [PATCH 2/2] Fix PHPCS error --- 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 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.