Changeset 3420466
- Timestamp:
- 12/15/2025 07:26:52 PM (3 months ago)
- Location:
- logtivity
- Files:
-
- 12 edited
- 1 copied
-
tags/3.3.6 (copied) (copied from logtivity/trunk)
-
tags/3.3.6/Core/Errors/Logtivity_Error_Log.php (modified) (1 diff)
-
tags/3.3.6/Core/Services/Logtivity_Check_For_Disabled_Individual_Logs.php (modified) (1 diff)
-
tags/3.3.6/Core/Services/Logtivity_Logger.php (modified) (1 diff)
-
tags/3.3.6/Core/Services/Logtivity_Rest_Endpoints.php (modified) (3 diffs)
-
tags/3.3.6/logtivity.php (modified) (2 diffs)
-
tags/3.3.6/readme.txt (modified) (2 diffs)
-
trunk/Core/Errors/Logtivity_Error_Log.php (modified) (1 diff)
-
trunk/Core/Services/Logtivity_Check_For_Disabled_Individual_Logs.php (modified) (1 diff)
-
trunk/Core/Services/Logtivity_Logger.php (modified) (1 diff)
-
trunk/Core/Services/Logtivity_Rest_Endpoints.php (modified) (3 diffs)
-
trunk/logtivity.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
logtivity/tags/3.3.6/Core/Errors/Logtivity_Error_Log.php
r3369912 r3420466 197 197 return false; 198 198 } 199 } 200 201 return true; 199 200 return true; 201 } 202 203 // Exceptions are not rate limited 204 return false; 202 205 } 203 206 -
logtivity/tags/3.3.6/Core/Services/Logtivity_Check_For_Disabled_Individual_Logs.php
r3369912 r3420466 32 32 public function __construct() 33 33 { 34 add_action('wp_logtivity_instance', [$this, 'handle'], 10, 2);34 add_action('wp_logtivity_instance', [$this, 'handle'], 10, 1); 35 35 } 36 36 -
logtivity/tags/3.3.6/Core/Services/Logtivity_Logger.php
r3382713 r3420466 121 121 public function setAction(string $action): self 122 122 { 123 $this->action = $action;123 $this->action = ucfirst(str_replace(['-', '_'], ' ', strtolower(trim($action)))); 124 124 125 125 return $this; -
logtivity/tags/3.3.6/Core/Services/Logtivity_Rest_Endpoints.php
r3369912 r3420466 55 55 $response[$lastCheckinOption] = $response[$lastCheckinOption]['date'] ?? null; 56 56 $response['logtivity_checkin_delay'] = $options->checkinDelay; 57 $response['version'] = $this->getLogtivityVersion(); 57 58 58 59 return $response; … … 81 82 $keys = explode(' ', $authHeader); 82 83 if (count($keys) == 2 && $keys[0] == 'Bearer') { 83 84 84 $payload = $this->parseToken($keys[1], $apikey); 85 85 … … 149 149 return false; 150 150 } 151 152 /** 153 * @return string 154 */ 155 protected function getLogtivityVersion(): string 156 { 157 $path = WP_PLUGIN_DIR . '/logtivity/logtivity.php'; 158 if (is_file($path)) { 159 $pluginData = get_plugin_data($path); 160 $version = $pluginData['Version'] ?? 'Unknown'; 161 } 162 163 return $version ?? 'Logtivity not available'; 164 } 151 165 } -
logtivity/tags/3.3.6/logtivity.php
r3402686 r3420466 6 6 * Description: Record activity logs and errors logs across all your WordPress sites. 7 7 * Author: Logtivity 8 * Version: 3.3. 58 * Version: 3.3.6 9 9 * Text Domain: logtivity 10 10 * Requires at least: 4.7 … … 45 45 * @var string 46 46 */ 47 protected string $version = '3.3. 5';47 protected string $version = '3.3.6'; 48 48 49 49 /** -
logtivity/tags/3.3.6/readme.txt
r3402686 r3420466 5 5 Requires at least: 6.6 6 6 Tested up to: 6.8 7 Stable tag: 3.3. 57 Stable tag: 3.3.6 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 262 262 263 263 == Changelog == 264 265 = 3.3.6 = 266 * Include plugin version number in api responses 267 * Stricter consistency with action texts 268 * Fix: Exceptions were never being logged 264 269 265 270 = 3.3.5 25 Nov 2025 = -
logtivity/trunk/Core/Errors/Logtivity_Error_Log.php
r3369912 r3420466 197 197 return false; 198 198 } 199 } 200 201 return true; 199 200 return true; 201 } 202 203 // Exceptions are not rate limited 204 return false; 202 205 } 203 206 -
logtivity/trunk/Core/Services/Logtivity_Check_For_Disabled_Individual_Logs.php
r3369912 r3420466 32 32 public function __construct() 33 33 { 34 add_action('wp_logtivity_instance', [$this, 'handle'], 10, 2);34 add_action('wp_logtivity_instance', [$this, 'handle'], 10, 1); 35 35 } 36 36 -
logtivity/trunk/Core/Services/Logtivity_Logger.php
r3382713 r3420466 121 121 public function setAction(string $action): self 122 122 { 123 $this->action = $action;123 $this->action = ucfirst(str_replace(['-', '_'], ' ', strtolower(trim($action)))); 124 124 125 125 return $this; -
logtivity/trunk/Core/Services/Logtivity_Rest_Endpoints.php
r3369912 r3420466 55 55 $response[$lastCheckinOption] = $response[$lastCheckinOption]['date'] ?? null; 56 56 $response['logtivity_checkin_delay'] = $options->checkinDelay; 57 $response['version'] = $this->getLogtivityVersion(); 57 58 58 59 return $response; … … 81 82 $keys = explode(' ', $authHeader); 82 83 if (count($keys) == 2 && $keys[0] == 'Bearer') { 83 84 84 $payload = $this->parseToken($keys[1], $apikey); 85 85 … … 149 149 return false; 150 150 } 151 152 /** 153 * @return string 154 */ 155 protected function getLogtivityVersion(): string 156 { 157 $path = WP_PLUGIN_DIR . '/logtivity/logtivity.php'; 158 if (is_file($path)) { 159 $pluginData = get_plugin_data($path); 160 $version = $pluginData['Version'] ?? 'Unknown'; 161 } 162 163 return $version ?? 'Logtivity not available'; 164 } 151 165 } -
logtivity/trunk/logtivity.php
r3402686 r3420466 6 6 * Description: Record activity logs and errors logs across all your WordPress sites. 7 7 * Author: Logtivity 8 * Version: 3.3. 58 * Version: 3.3.6 9 9 * Text Domain: logtivity 10 10 * Requires at least: 4.7 … … 45 45 * @var string 46 46 */ 47 protected string $version = '3.3. 5';47 protected string $version = '3.3.6'; 48 48 49 49 /** -
logtivity/trunk/readme.txt
r3402686 r3420466 5 5 Requires at least: 6.6 6 6 Tested up to: 6.8 7 Stable tag: 3.3. 57 Stable tag: 3.3.6 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 262 262 263 263 == Changelog == 264 265 = 3.3.6 = 266 * Include plugin version number in api responses 267 * Stricter consistency with action texts 268 * Fix: Exceptions were never being logged 264 269 265 270 = 3.3.5 25 Nov 2025 =
Note: See TracChangeset
for help on using the changeset viewer.