From 6518f98f3c4fc797826e308d354c5f423912c7b6 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Wed, 1 Feb 2023 10:39:49 -0500 Subject: [PATCH 1/4] add username from server to site env data --- src/HiiveConnection.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/HiiveConnection.php b/src/HiiveConnection.php index f867f3c..78151be 100644 --- a/src/HiiveConnection.php +++ b/src/HiiveConnection.php @@ -283,6 +283,7 @@ public function get_core_data() { 'php' => phpversion(), 'plugin' => container()->plugin()->get( 'version', '0' ), 'url' => get_site_url(), + 'username' => get_current_user(), 'wp' => $wp_version, ); From 9c15aeadbac5ebc77590bd35f98e063f6c4cf66c Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Wed, 1 Feb 2023 10:40:44 -0500 Subject: [PATCH 2/4] bump version --- bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.php b/bootstrap.php index 0dd310e..d1032cb 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -12,7 +12,7 @@ exit; } -define( 'NFD_DATA_MODULE_VERSION', '2.2.0' ); +define( 'NFD_DATA_MODULE_VERSION', '2.2.5' ); /** * Register the data module From ea9c7133d1be35ab5250af12607bdebdd3b57cf9 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Wed, 1 Feb 2023 10:42:43 -0500 Subject: [PATCH 3/4] add parameter comment --- src/HiiveConnection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HiiveConnection.php b/src/HiiveConnection.php index 78151be..d0e2438 100644 --- a/src/HiiveConnection.php +++ b/src/HiiveConnection.php @@ -216,7 +216,7 @@ public function is_throttled() { * Post event data payload to the hiive * * @param Event[] $events Array of Event objects representing the actions that occurred - * @param bool $is_blocking + * @param bool $is_blocking Determines if the request is a blocking request * * @return array|\WP_Error */ From 431a71d0ca2b051dd55faa80468cc313e0fc58a3 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Wed, 1 Feb 2023 10:44:38 -0500 Subject: [PATCH 4/4] fix spacing for lint --- src/HiiveConnection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HiiveConnection.php b/src/HiiveConnection.php index d0e2438..80756de 100644 --- a/src/HiiveConnection.php +++ b/src/HiiveConnection.php @@ -216,7 +216,7 @@ public function is_throttled() { * Post event data payload to the hiive * * @param Event[] $events Array of Event objects representing the actions that occurred - * @param bool $is_blocking Determines if the request is a blocking request + * @param bool $is_blocking Determines if the request is a blocking request * * @return array|\WP_Error */