Changeset 2875540
- Timestamp:
- 03/06/2023 10:56:46 PM (3 years ago)
- Location:
- logtivity
- Files:
-
- 67 added
- 8 edited
-
tags/2.3.0 (added)
-
tags/2.3.0/.gitignore (added)
-
tags/2.3.0/Admin (added)
-
tags/2.3.0/Admin/Logtivity_Admin.php (added)
-
tags/2.3.0/Admin/Logtivity_Dismiss_Notice_Controller.php (added)
-
tags/2.3.0/Admin/Logtivity_Log_Index_Controller.php (added)
-
tags/2.3.0/Admin/Logtivity_Options.php (added)
-
tags/2.3.0/Errors (added)
-
tags/2.3.0/Errors/Logtivity_Error_Log.php (added)
-
tags/2.3.0/Errors/Logtivity_Error_Logger.php (added)
-
tags/2.3.0/Errors/Logtivity_Stack_Trace.php (added)
-
tags/2.3.0/Errors/Logtivity_Stack_Trace_Snippet.php (added)
-
tags/2.3.0/Helpers (added)
-
tags/2.3.0/Helpers/Helpers.php (added)
-
tags/2.3.0/Helpers/Logtivity_Log_Global_Function.php (added)
-
tags/2.3.0/Helpers/Logtivity_Wp_User.php (added)
-
tags/2.3.0/Logs (added)
-
tags/2.3.0/Logs/Code_Snippets (added)
-
tags/2.3.0/Logs/Code_Snippets/Logtivity_Code_Snippets.php (added)
-
tags/2.3.0/Logs/Core (added)
-
tags/2.3.0/Logs/Core/Logtivity_Comment.php (added)
-
tags/2.3.0/Logs/Core/Logtivity_Core.php (added)
-
tags/2.3.0/Logs/Core/Logtivity_Meta.php (added)
-
tags/2.3.0/Logs/Core/Logtivity_Plugin.php (added)
-
tags/2.3.0/Logs/Core/Logtivity_Post.php (added)
-
tags/2.3.0/Logs/Core/Logtivity_Term.php (added)
-
tags/2.3.0/Logs/Core/Logtivity_Theme.php (added)
-
tags/2.3.0/Logs/Core/Logtivity_User.php (added)
-
tags/2.3.0/Logs/Download_Monitor (added)
-
tags/2.3.0/Logs/Download_Monitor/Logtivity_Download_Monitor.php (added)
-
tags/2.3.0/Logs/Easy_Digital_Downloads (added)
-
tags/2.3.0/Logs/Easy_Digital_Downloads/Logtivity_Abstract_Easy_Digital_Downloads.php (added)
-
tags/2.3.0/Logs/Easy_Digital_Downloads/Logtivity_Easy_Digital_Downloads.php (added)
-
tags/2.3.0/Logs/Easy_Digital_Downloads/Logtivity_Easy_Digital_Downloads_Recurring.php (added)
-
tags/2.3.0/Logs/Easy_Digital_Downloads/Logtivity_Easy_Digital_Downloads_Software_Licensing.php (added)
-
tags/2.3.0/Logs/Formidable (added)
-
tags/2.3.0/Logs/Formidable/Logtivity_Formidable.php (added)
-
tags/2.3.0/Logs/Formidable/Logtivity_FrmEntryFormatter.php (added)
-
tags/2.3.0/Logs/Logtivity_Abstract_Logger.php (added)
-
tags/2.3.0/Logs/Memberpress (added)
-
tags/2.3.0/Logs/Memberpress/Logtivity_Memberpress.php (added)
-
tags/2.3.0/Logs/WP_All_Import (added)
-
tags/2.3.0/Logs/WP_All_Import/Logtivity_WP_All_Import.php (added)
-
tags/2.3.0/Services (added)
-
tags/2.3.0/Services/Logtivity_Api.php (added)
-
tags/2.3.0/Services/Logtivity_Check_For_Disabled_Individual_Logs.php (added)
-
tags/2.3.0/Services/Logtivity_Check_For_New_Settings.php (added)
-
tags/2.3.0/Services/Logtivity_Logger.php (added)
-
tags/2.3.0/Services/Logtivity_Register_Site.php (added)
-
tags/2.3.0/Services/Logtivity_User_Logger_Trait.php (added)
-
tags/2.3.0/assets (added)
-
tags/2.3.0/assets/admin.css (added)
-
tags/2.3.0/assets/app.js (added)
-
tags/2.3.0/assets/logtivity-logo.svg (added)
-
tags/2.3.0/logtivity.php (added)
-
tags/2.3.0/readme.md (added)
-
tags/2.3.0/readme.txt (added)
-
tags/2.3.0/views (added)
-
tags/2.3.0/views/_admin-footer.php (added)
-
tags/2.3.0/views/_admin-header.php (added)
-
tags/2.3.0/views/_admin-sidebar.php (added)
-
tags/2.3.0/views/_log-show.php (added)
-
tags/2.3.0/views/_logs-loop.php (added)
-
tags/2.3.0/views/activation.php (added)
-
tags/2.3.0/views/log-index.php (added)
-
tags/2.3.0/views/settings.php (added)
-
tags/2.3.0/views/site-url-changed-notice.php (added)
-
trunk/Admin/Logtivity_Admin.php (modified) (1 diff)
-
trunk/Admin/Logtivity_Options.php (modified) (2 diffs)
-
trunk/Logs/Core/Logtivity_Core.php (modified) (1 diff)
-
trunk/Services/Logtivity_Api.php (modified) (3 diffs)
-
trunk/Services/Logtivity_Check_For_New_Settings.php (modified) (1 diff)
-
trunk/logtivity.php (modified) (2 diffs)
-
trunk/readme.md (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
logtivity/trunk/Admin/Logtivity_Admin.php
r2829637 r2875540 22 22 public function maybeHideFromMenu($plugins) 23 23 { 24 if ($name = (new Logtivity_Options)->customPluginName()) { 25 if (isset($plugins['logtivity/logtivity.php'])) { 26 $plugins['logtivity/logtivity.php']['Name'] = $name; 27 } 28 } 29 24 30 if (!$this->shouldHidePluginFromUI(false)) { 25 31 return $plugins; -
logtivity/trunk/Admin/Logtivity_Options.php
r2861741 r2875540 27 27 'logtivity_disabled_error_levels', 28 28 'logtivity_hide_plugin_from_ui', 29 'logtivity_custom_plugin_name', 29 30 ]; 30 31 … … 186 187 { 187 188 return $this->getOption('logtivity_hide_plugin_from_ui'); 189 } 190 191 public function customPluginName() 192 { 193 return $this->getOption('logtivity_custom_plugin_name'); 188 194 } 189 195 -
logtivity/trunk/Logs/Core/Logtivity_Core.php
r2861741 r2875540 100 100 'logtivity_disable_error_logging', 101 101 'logtivity_hide_plugin_from_ui', 102 'logtivity_custom_plugin_name', 102 103 'logtivity_disable_default_logging', 103 104 'logtivity_site_api_key', -
logtivity/trunk/Services/Logtivity_Api.php
r2861741 r2875540 100 100 $response = wp_remote_post($this->getEndpoint($url), [ 101 101 'method' => $method, 102 'timeout' => ( $shouldLogLatestResponse ? 45: 0.01),102 'timeout' => ( $shouldLogLatestResponse ? 6 : 0.01), 103 103 'blocking' => ( $shouldLogLatestResponse ? true : false), 104 104 'redirection' => 5, … … 113 113 $response = wp_remote_retrieve_body($response); 114 114 115 if (empty($response)) { 116 return $response; 117 } 118 115 119 if ($shouldLogLatestResponse && $this->notUpdatingWidgetInCustomizer() && $method === 'POST') { 116 117 120 $this->options->update([ 118 121 'logtivity_latest_response' => [ … … 146 149 'logtivity_enable_options_table_logging' => $body['settings']['enable_options_table_logging'] ?? null, 147 150 'logtivity_enable_post_meta_logging' => $body['settings']['enable_post_meta_logging'] ?? null, 151 'logtivity_custom_plugin_name' => $body['settings']['custom_plugin_name'] ?? null, 148 152 ], 149 153 false -
logtivity/trunk/Services/Logtivity_Check_For_New_Settings.php
r2861741 r2875540 16 16 update_option('logtivity_last_settings_check_in_at', ['date' => date("Y-m-d H:i:s")]); 17 17 18 $api = new Logtivity_Api; 18 try { 19 $api = new Logtivity_Api; 19 20 20 $response = $api->post('/settings-check', []);21 $response = $api->post('/settings-check', []); 21 22 22 $response = wp_remote_retrieve_body($response); 23 if (empty($response)) { 24 return; 25 } 26 27 $body = json_decode($response, true); 23 28 24 $body = json_decode($response, true); 25 26 $api->updateSettings($body); 29 $api->updateSettings($body); 30 } catch (\Exception $e) { 31 32 } 27 33 } 28 34 -
logtivity/trunk/logtivity.php
r2866734 r2875540 5 5 * Plugin URI: https://logtivity.io 6 6 * Description: Dedicated Event Monitoring for WordPress using Logtivity.io. 7 * Version: 2. 2.17 * Version: 2.3.0 8 8 * Author: Logtivity 9 9 * Text Domain: logtivity … … 12 12 class Logtivity 13 13 { 14 protected $version = '2. 2.1';14 protected $version = '2.3.0'; 15 15 16 16 /** -
logtivity/trunk/readme.md
r2866734 r2875540 5 5 Requires at least: 4.7 6 6 Tested up to: 6.0 7 Stable tag: 2. 2.17 Stable tag: 2.3.0 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 262 262 263 263 == Changelog == 264 265 = 2.3.0 = 266 267 _Release Date – Thursday 2nd March 2023_ 268 269 * Add ability to set a custom name for the plugin when listed in /wp-admin/plugins.php 270 * Reduce timeout when checking in the with API for settings updates to ensure to not affect performance. 264 271 265 272 = 2.2.1 = -
logtivity/trunk/readme.txt
r2866734 r2875540 5 5 Requires at least: 4.7 6 6 Tested up to: 6.0 7 Stable tag: 2. 2.17 Stable tag: 2.3.0 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 262 262 263 263 == Changelog == 264 265 = 2.3.0 = 266 267 _Release Date – Thursday 2nd March 2023_ 268 269 * Add ability to set a custom name for the plugin when listed in /wp-admin/plugins.php 270 * Reduce timeout when checking in the with API for settings updates to ensure to not affect performance. 264 271 265 272 = 2.2.1 =
Note: See TracChangeset
for help on using the changeset viewer.