From a2759a6fe5596cda1aa085f36e8c7a59dd1cb07a Mon Sep 17 00:00:00 2001 From: Arnan de Gans Date: Tue, 4 Mar 2025 02:47:17 -0600 Subject: [PATCH] 4.0.2 * [change] Updated compatibility information * [change] Updated action links --- analytics-spam-blocker-dashboard.php | 2 +- analytics-spam-blocker-functions.php | 24 ++++++++++++------------ analytics-spam-blocker.php | 8 ++++---- readme.txt | 18 +++++++++++++----- 4 files changed, 30 insertions(+), 22 deletions(-) diff --git a/analytics-spam-blocker-dashboard.php b/analytics-spam-blocker-dashboard.php index a7ffe2b..1b9cfe1 100644 --- a/analytics-spam-blocker-dashboard.php +++ b/analytics-spam-blocker-dashboard.php @@ -1,7 +1,7 @@ 0, 'domain_count' => 0, 'domains' => array()); @@ -214,7 +214,7 @@ function spamblocker_load_remote_domains() { // Read file $domains = unserialize(file_get_contents($domain_file)); } - + return $domains; } @@ -235,14 +235,14 @@ function spamblocker_get_spam_domains() { // Get latest blocklist $args = array('headers' => array('Accept' => 'multipart/form-data'), 'user-agent' => 'analytics-spam-blocker/'.$plugin_version.';', 'sslverify' => false, 'timeout' => 5); $response = wp_remote_get('https://raw.githubusercontent.com/matomo-org/referrer-spam-list/master/spammers.txt', $args); - + if(!is_wp_error($response) AND !empty($response['body'])) { $new_domains = array(); - + // Turn string into an array $new_domains['domains'] = explode("\n", trim($response['body'])); $how_many = count($new_domains['domains']); - + if($how_many > 0) { $domains['updated'] = current_time('timestamp'); $domains['domain_count'] = $how_many; @@ -288,7 +288,7 @@ function spamblocker_notifications_dashboard() { if($birthday_banner < current_time('timestamp') AND date('M', current_time('timestamp')) == 'Feb') { echo '
'; echo ' '; - echo '
Hey '.$displayname.'! Did you know it is Arnan his birtyday this month? February 9th to be exact. Wish him a happy birthday via Telegram!
Who is Arnan? He made Analytics Spam Blocker for you - Check out his website or send a gift.
'; + echo '
Hey '.$displayname.'! Did you know it is Arnan his birtyday this month? February 9th to be exact. Wish him a happy birthday via Telegram!
Who is Arnan? He made Analytics Spam Blocker for you - Check out his website or send a gift.
'; echo '
'; echo ' Wish Happy Birthday'; echo ' Done it'; @@ -303,8 +303,8 @@ function spamblocker_notifications_dashboard() { -------------------------------------------------------------*/ function spamblocker_action_links($links) { $links['ajdg-spamblocker-settings'] = sprintf('%s', admin_url('tools.php?page=analytics-spam-blocker'), 'Settings'); - $links['ajdg-spamblocker-help'] = sprintf('%s', 'https://ajdg.solutions/forums/?mtm_campaign=ajdg_spamblocker', 'Support'); - $links['ajdg-spamblocker-more'] = sprintf('%s', 'https://ajdg.solutions/plugins/?mtm_campaign=ajdg_spamblocker', 'More plugins'); + $links['ajdg-spamblocker-help'] = sprintf('%s', 'https://support.ajdg.net/', 'Support'); + $links['ajdg-spamblocker-more'] = sprintf('%s', 'https://ajdg.solutions/plugins/', 'More plugins'); return $links; } diff --git a/analytics-spam-blocker.php b/analytics-spam-blocker.php index 566b522..c8effcd 100644 --- a/analytics-spam-blocker.php +++ b/analytics-spam-blocker.php @@ -1,19 +1,19 @@