Changeset 2737295
- Timestamp:
- 06/04/2022 10:00:42 AM (4 years ago)
- Location:
- logtivity
- Files:
-
- 58 added
- 6 edited
-
tags/1.17.1 (added)
-
tags/1.17.1/.gitignore (added)
-
tags/1.17.1/Admin (added)
-
tags/1.17.1/Admin/Logtivity_Admin.php (added)
-
tags/1.17.1/Admin/Logtivity_Dismiss_Notice_Controller.php (added)
-
tags/1.17.1/Admin/Logtivity_Log_Index_Controller.php (added)
-
tags/1.17.1/Admin/Logtivity_Options.php (added)
-
tags/1.17.1/Helpers (added)
-
tags/1.17.1/Helpers/Helpers.php (added)
-
tags/1.17.1/Helpers/Logtivity_Log_Global_Function.php (added)
-
tags/1.17.1/Helpers/Logtivity_Wp_User.php (added)
-
tags/1.17.1/Logs (added)
-
tags/1.17.1/Logs/Core (added)
-
tags/1.17.1/Logs/Core/Logtivity_Comment.php (added)
-
tags/1.17.1/Logs/Core/Logtivity_Core.php (added)
-
tags/1.17.1/Logs/Core/Logtivity_Meta.php (added)
-
tags/1.17.1/Logs/Core/Logtivity_Plugin.php (added)
-
tags/1.17.1/Logs/Core/Logtivity_Post.php (added)
-
tags/1.17.1/Logs/Core/Logtivity_Term.php (added)
-
tags/1.17.1/Logs/Core/Logtivity_Theme.php (added)
-
tags/1.17.1/Logs/Core/Logtivity_User.php (added)
-
tags/1.17.1/Logs/Download_Monitor (added)
-
tags/1.17.1/Logs/Download_Monitor/Logtivity_Download_Monitor.php (added)
-
tags/1.17.1/Logs/Easy_Digital_Downloads (added)
-
tags/1.17.1/Logs/Easy_Digital_Downloads/Logtivity_Abstract_Easy_Digital_Downloads.php (added)
-
tags/1.17.1/Logs/Easy_Digital_Downloads/Logtivity_Easy_Digital_Downloads.php (added)
-
tags/1.17.1/Logs/Easy_Digital_Downloads/Logtivity_Easy_Digital_Downloads_Recurring.php (added)
-
tags/1.17.1/Logs/Easy_Digital_Downloads/Logtivity_Easy_Digital_Downloads_Software_Licensing.php (added)
-
tags/1.17.1/Logs/Formidable (added)
-
tags/1.17.1/Logs/Formidable/Logtivity_Formidable.php (added)
-
tags/1.17.1/Logs/Formidable/Logtivity_FrmEntryFormatter.php (added)
-
tags/1.17.1/Logs/Logtivity_Abstract_Logger.php (added)
-
tags/1.17.1/Logs/Memberpress (added)
-
tags/1.17.1/Logs/Memberpress/Logtivity_Memberpress.php (added)
-
tags/1.17.1/Logs/WP_All_Import (added)
-
tags/1.17.1/Logs/WP_All_Import/Logtivity_WP_All_Import.php (added)
-
tags/1.17.1/Services (added)
-
tags/1.17.1/Services/Logtivity_Api.php (added)
-
tags/1.17.1/Services/Logtivity_Check_For_Disabled_Individual_Logs.php (added)
-
tags/1.17.1/Services/Logtivity_Logger.php (added)
-
tags/1.17.1/Services/Logtivity_Register_Site.php (added)
-
tags/1.17.1/assets (added)
-
tags/1.17.1/assets/admin.css (added)
-
tags/1.17.1/assets/app.js (added)
-
tags/1.17.1/assets/logtivity-logo.svg (added)
-
tags/1.17.1/logtivity.php (added)
-
tags/1.17.1/readme.md (added)
-
tags/1.17.1/readme.txt (added)
-
tags/1.17.1/views (added)
-
tags/1.17.1/views/_admin-footer.php (added)
-
tags/1.17.1/views/_admin-header.php (added)
-
tags/1.17.1/views/_admin-sidebar.php (added)
-
tags/1.17.1/views/_log-show.php (added)
-
tags/1.17.1/views/_logs-loop.php (added)
-
tags/1.17.1/views/activation.php (added)
-
tags/1.17.1/views/log-index.php (added)
-
tags/1.17.1/views/settings.php (added)
-
tags/1.17.1/views/site-url-changed-notice.php (added)
-
trunk/Helpers/Logtivity_Wp_User.php (modified) (6 diffs)
-
trunk/Logs/Core/Logtivity_User.php (modified) (2 diffs)
-
trunk/logtivity.php (modified) (2 diffs)
-
trunk/readme.md (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/views/settings.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
logtivity/trunk/Helpers/Logtivity_Wp_User.php
r2492630 r2737295 42 42 public function id() 43 43 { 44 if ($this->user->ID == 0) { 45 return; 46 } 47 44 48 return $this->user->ID; 45 49 } … … 47 51 public function userLogin() 48 52 { 53 if ($this->user->ID == 0) { 54 return; 55 } 56 49 57 return $this->user->user_login; 50 58 } … … 96 104 $meta = get_user_meta($this->user->ID, $meta_key, $returnString); 97 105 98 if ($meta != '') 99 { 106 if ($meta != '') { 100 107 return $meta; 101 108 } … … 121 128 public function isLoggedIn() 122 129 { 123 if ($this->user->ID == 0) 124 { 130 if ($this->user->ID == 0) { 125 131 return false; 126 132 } … … 138 144 public function hasRole($role) 139 145 { 140 if ( in_array($role, $this->getRoles()) ) 141 { 146 if ( in_array($role, $this->getRoles()) ) { 142 147 return true; 143 148 } … … 166 171 return $role; 167 172 } 168 169 return false;170 173 } 171 174 -
logtivity/trunk/Logs/Core/Logtivity_User.php
r2625590 r2737295 6 6 { 7 7 add_action('wp_login', [$this, 'userLoggedIn'], 10, 2); 8 add_action(' clear_auth_cookie', [$this, 'userLoggedOut']);8 add_action('wp_logout', [$this, 'userLoggedOut'], 10, 1); 9 9 add_action( 'user_register', [$this, 'userCreated'], 10, 1 ); 10 10 add_action( 'delete_user', [$this, 'userDeleted'] ); … … 22 22 } 23 23 24 public function userLoggedOut( )24 public function userLoggedOut($user_id) 25 25 { 26 $user = new Logtivity_WP_User(); 26 if ($user_id == 0) { 27 return; 28 } 29 30 $user = new Logtivity_WP_User($user_id); 27 31 28 return (new Logtivity_Logger( ))29 ->setAction('User Logged Out')30 ->setContext($user->getRole())31 ->send();32 return (new Logtivity_Logger($user_id)) 33 ->setAction('User Logged Out') 34 ->setContext($user->getRole()) 35 ->send(); 32 36 } 33 37 -
logtivity/trunk/logtivity.php
r2723235 r2737295 5 5 * Plugin URI: https://logtivity.io 6 6 * Description: Dedicated Event Monitoring for WordPress using Logtivity.io. 7 * Version: 1.17. 07 * Version: 1.17.1 8 8 * Author: Logtivity 9 9 * Text Domain: logtivity … … 12 12 class Logtivity 13 13 { 14 protected $version = '1.17. 0';14 protected $version = '1.17.1'; 15 15 16 16 /** -
logtivity/trunk/readme.md
r2723235 r2737295 5 5 Requires at least: 4.7 6 6 Tested up to: 5.9 7 Stable tag: 1.17. 07 Stable tag: 1.17.1 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 279 279 == Changelog == 280 280 281 = 1.17.1 = 282 283 _Release Date – Saturday 4th June 2022_ 284 285 * Fix occasional User Logged Out logging unnecessarily. 286 * Hide latest response info when debug mode is off. 287 281 288 = 1.17.0 = 282 289 -
logtivity/trunk/readme.txt
r2723235 r2737295 5 5 Requires at least: 4.7 6 6 Tested up to: 5.9 7 Stable tag: 1.17. 07 Stable tag: 1.17.1 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 279 279 == Changelog == 280 280 281 = 1.17.1 = 282 283 _Release Date – Saturday 4th June 2022_ 284 285 * Fix occasional User Logged Out logging unnecessarily. 286 * Hide latest response info when debug mode is off. 287 281 288 = 1.17.0 = 282 289 -
logtivity/trunk/views/settings.php
r2723235 r2737295 169 169 </div> 170 170 171 <?php //if (absint( $options['logtivity_enable_debug_mode'] )): ?>171 <?php if (absint( $options['logtivity_enable_debug_mode'] )): ?> 172 172 173 173 <div class="postbox"> … … 197 197 </div> 198 198 199 <?php //endif ?>199 <?php endif ?> 200 200 201 201 <?php echo logtivity_view('_admin-footer', compact('options')); ?>
Note: See TracChangeset
for help on using the changeset viewer.