Changeset 2741443
- Timestamp:
- 06/13/2022 08:58:00 AM (4 years ago)
- Location:
- logtivity
- Files:
-
- 58 added
- 5 edited
-
tags/1.18.0 (added)
-
tags/1.18.0/.gitignore (added)
-
tags/1.18.0/Admin (added)
-
tags/1.18.0/Admin/Logtivity_Admin.php (added)
-
tags/1.18.0/Admin/Logtivity_Dismiss_Notice_Controller.php (added)
-
tags/1.18.0/Admin/Logtivity_Log_Index_Controller.php (added)
-
tags/1.18.0/Admin/Logtivity_Options.php (added)
-
tags/1.18.0/Helpers (added)
-
tags/1.18.0/Helpers/Helpers.php (added)
-
tags/1.18.0/Helpers/Logtivity_Log_Global_Function.php (added)
-
tags/1.18.0/Helpers/Logtivity_Wp_User.php (added)
-
tags/1.18.0/Logs (added)
-
tags/1.18.0/Logs/Core (added)
-
tags/1.18.0/Logs/Core/Logtivity_Comment.php (added)
-
tags/1.18.0/Logs/Core/Logtivity_Core.php (added)
-
tags/1.18.0/Logs/Core/Logtivity_Meta.php (added)
-
tags/1.18.0/Logs/Core/Logtivity_Plugin.php (added)
-
tags/1.18.0/Logs/Core/Logtivity_Post.php (added)
-
tags/1.18.0/Logs/Core/Logtivity_Term.php (added)
-
tags/1.18.0/Logs/Core/Logtivity_Theme.php (added)
-
tags/1.18.0/Logs/Core/Logtivity_User.php (added)
-
tags/1.18.0/Logs/Download_Monitor (added)
-
tags/1.18.0/Logs/Download_Monitor/Logtivity_Download_Monitor.php (added)
-
tags/1.18.0/Logs/Easy_Digital_Downloads (added)
-
tags/1.18.0/Logs/Easy_Digital_Downloads/Logtivity_Abstract_Easy_Digital_Downloads.php (added)
-
tags/1.18.0/Logs/Easy_Digital_Downloads/Logtivity_Easy_Digital_Downloads.php (added)
-
tags/1.18.0/Logs/Easy_Digital_Downloads/Logtivity_Easy_Digital_Downloads_Recurring.php (added)
-
tags/1.18.0/Logs/Easy_Digital_Downloads/Logtivity_Easy_Digital_Downloads_Software_Licensing.php (added)
-
tags/1.18.0/Logs/Formidable (added)
-
tags/1.18.0/Logs/Formidable/Logtivity_Formidable.php (added)
-
tags/1.18.0/Logs/Formidable/Logtivity_FrmEntryFormatter.php (added)
-
tags/1.18.0/Logs/Logtivity_Abstract_Logger.php (added)
-
tags/1.18.0/Logs/Memberpress (added)
-
tags/1.18.0/Logs/Memberpress/Logtivity_Memberpress.php (added)
-
tags/1.18.0/Logs/WP_All_Import (added)
-
tags/1.18.0/Logs/WP_All_Import/Logtivity_WP_All_Import.php (added)
-
tags/1.18.0/Services (added)
-
tags/1.18.0/Services/Logtivity_Api.php (added)
-
tags/1.18.0/Services/Logtivity_Check_For_Disabled_Individual_Logs.php (added)
-
tags/1.18.0/Services/Logtivity_Logger.php (added)
-
tags/1.18.0/Services/Logtivity_Register_Site.php (added)
-
tags/1.18.0/assets (added)
-
tags/1.18.0/assets/admin.css (added)
-
tags/1.18.0/assets/app.js (added)
-
tags/1.18.0/assets/logtivity-logo.svg (added)
-
tags/1.18.0/logtivity.php (added)
-
tags/1.18.0/readme.md (added)
-
tags/1.18.0/readme.txt (added)
-
tags/1.18.0/views (added)
-
tags/1.18.0/views/_admin-footer.php (added)
-
tags/1.18.0/views/_admin-header.php (added)
-
tags/1.18.0/views/_admin-sidebar.php (added)
-
tags/1.18.0/views/_log-show.php (added)
-
tags/1.18.0/views/_logs-loop.php (added)
-
tags/1.18.0/views/activation.php (added)
-
tags/1.18.0/views/log-index.php (added)
-
tags/1.18.0/views/settings.php (added)
-
tags/1.18.0/views/site-url-changed-notice.php (added)
-
trunk/Logs/Core/Logtivity_Core.php (modified) (2 diffs)
-
trunk/Services/Logtivity_Check_For_Disabled_Individual_Logs.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/Logs/Core/Logtivity_Core.php
r2584302 r2741443 10 10 add_action('init', [$this, 'maybeSettingsUpdated']); 11 11 add_action( 'permalink_structure_changed', [$this, 'permalinksUpdated'], 10, 2); 12 add_action( 'update_option', [$this, 'optionUpdated'], 10, 3); 13 12 14 // do_action_ref_array( 'phpmailer_init', array( &$phpmailer ) ); 13 15 } … … 76 78 } 77 79 80 public function optionUpdated($option, $old_value, $value) 81 { 82 if (!is_admin() || $old_value == $value) { 83 return; 84 } 85 86 $ignore = [ 87 'cron', 88 'action_scheduler_lock_async-request-runner', 89 'wp_all_export_pro_addons_not_included', 90 'logtivity_latest_response', 91 'logtivity_api_key_check', 92 'logtivity_url_hash', 93 'logtivity_global_disabled_logs', 94 'logtivity_enable_white_label_mode', 95 'recently_activated', 96 'active_plugins', 97 'jp_sync_last_success_sync', 98 'jetpack_sync_settings_dedicated_sync_enabled', 99 'jetpack_plugin_api_action_links', 100 'stats_cache', 101 'admin_email_lifespan', 102 'db_upgraded', 103 'delete_blog_hash', 104 'adminhash', 105 'auto_plugin_theme_update_emails', 106 '_wp_suggested_policy_text_has_changed', 107 'ftp_credentials', 108 'uninstall_plugins', 109 'wp_force_deactivated_plugins', 110 'fresh_site', 111 'allowedthemes', 112 'rxpp_blocked_methods_count', 113 'wordfence_syncAttackDataAttempts', 114 'akismet_spam_count', 115 'jetpack_next_sync_time_sync', 116 'jetpack_updates_sync_checksum', 117 ]; 118 119 if (in_array($option, $ignore)) { 120 return; 121 } 122 123 $wildcardIgnores = [ 124 'transient', 125 'cache', 126 'auto_updater', 127 'frm_addons', 128 'wpe', 129 'edd_api', 130 'edd_sl', 131 ]; 132 133 foreach ($wildcardIgnores as $wildcard) { 134 if (strpos($option, $wildcard) !== false) { 135 return; 136 } 137 } 138 139 Logtivity::log() 140 ->setAction('Option Updated') 141 ->setContext($option) 142 ->addMeta('Old Value', $old_value) 143 ->addMeta('New Value', $value) 144 ->send(); 145 } 146 78 147 public function permalinksUpdated($old_permalink_structure, $permalink_structure) 79 148 { -
logtivity/trunk/Services/Logtivity_Check_For_Disabled_Individual_Logs.php
r2723235 r2741443 45 45 } 46 46 47 private function matches($keyword 1, $disabledKeyword)47 private function matches($keyword, $disabledKeyword) 48 48 { 49 $disabledKeyword = trim($disabledKeyword); 49 $keyword = trim(strtolower($keyword)); 50 $disabledKeyword = trim(strtolower($disabledKeyword)); 50 51 51 52 if ($disabledKeyword === '*') { 52 53 return true; 53 54 } 55 56 if (strpos($disabledKeyword, '*') !== false) { 57 return strpos($keyword, str_replace('*', '', $disabledKeyword)) !== false; 58 } 54 59 55 return strtolower(trim($keyword1)) == strtolower($disabledKeyword);60 return $keyword == $disabledKeyword; 56 61 } 57 62 -
logtivity/trunk/logtivity.php
r2737295 r2741443 5 5 * Plugin URI: https://logtivity.io 6 6 * Description: Dedicated Event Monitoring for WordPress using Logtivity.io. 7 * Version: 1.1 7.17 * Version: 1.18.0 8 8 * Author: Logtivity 9 9 * Text Domain: logtivity … … 12 12 class Logtivity 13 13 { 14 protected $version = '1.1 7.1';14 protected $version = '1.18.0'; 15 15 16 16 /** -
logtivity/trunk/readme.md
r2737295 r2741443 5 5 Requires at least: 4.7 6 6 Tested up to: 5.9 7 Stable tag: 1.1 7.17 Stable tag: 1.18.0 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 279 279 == Changelog == 280 280 281 = 1.18.0 = 282 283 _Release Date – Monday 13th June 2022_ 284 285 * Add logging of Option Updates. 286 * Allow wildcards when disabling specific logs. 287 281 288 = 1.17.1 = 282 289 -
logtivity/trunk/readme.txt
r2737295 r2741443 5 5 Requires at least: 4.7 6 6 Tested up to: 5.9 7 Stable tag: 1.1 7.17 Stable tag: 1.18.0 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 279 279 == Changelog == 280 280 281 = 1.18.0 = 282 283 _Release Date – Monday 13th June 2022_ 284 285 * Add logging of Option Updates. 286 * Allow wildcards when disabling specific logs. 287 281 288 = 1.17.1 = 282 289
Note: See TracChangeset
for help on using the changeset viewer.