Changeset 2699882
- Timestamp:
- 03/26/2022 08:50:47 AM (4 years ago)
- Location:
- logtivity
- Files:
-
- 54 added
- 5 edited
-
tags/1.13.0 (added)
-
tags/1.13.0/.gitignore (added)
-
tags/1.13.0/Admin (added)
-
tags/1.13.0/Admin/Logtivity_Admin.php (added)
-
tags/1.13.0/Admin/Logtivity_Dismiss_Notice_Controller.php (added)
-
tags/1.13.0/Admin/Logtivity_Log_Index_Controller.php (added)
-
tags/1.13.0/Admin/Logtivity_Options.php (added)
-
tags/1.13.0/Helpers (added)
-
tags/1.13.0/Helpers/Helpers.php (added)
-
tags/1.13.0/Helpers/Logtivity_Log_Global_Function.php (added)
-
tags/1.13.0/Helpers/Logtivity_Wp_User.php (added)
-
tags/1.13.0/Logs (added)
-
tags/1.13.0/Logs/Core (added)
-
tags/1.13.0/Logs/Core/Logtivity_Comment.php (added)
-
tags/1.13.0/Logs/Core/Logtivity_Core.php (added)
-
tags/1.13.0/Logs/Core/Logtivity_Plugin.php (added)
-
tags/1.13.0/Logs/Core/Logtivity_Post.php (added)
-
tags/1.13.0/Logs/Core/Logtivity_Term.php (added)
-
tags/1.13.0/Logs/Core/Logtivity_Theme.php (added)
-
tags/1.13.0/Logs/Core/Logtivity_User.php (added)
-
tags/1.13.0/Logs/Download_Monitor (added)
-
tags/1.13.0/Logs/Download_Monitor/Logtivity_Download_Monitor.php (added)
-
tags/1.13.0/Logs/Easy_Digital_Downloads (added)
-
tags/1.13.0/Logs/Easy_Digital_Downloads/Logtivity_Abstract_Easy_Digital_Downloads.php (added)
-
tags/1.13.0/Logs/Easy_Digital_Downloads/Logtivity_Easy_Digital_Downloads.php (added)
-
tags/1.13.0/Logs/Easy_Digital_Downloads/Logtivity_Easy_Digital_Downloads_Recurring.php (added)
-
tags/1.13.0/Logs/Easy_Digital_Downloads/Logtivity_Easy_Digital_Downloads_Software_Licensing.php (added)
-
tags/1.13.0/Logs/Formidable (added)
-
tags/1.13.0/Logs/Formidable/Logtivity_Formidable.php (added)
-
tags/1.13.0/Logs/Formidable/Logtivity_FrmEntryFormatter.php (added)
-
tags/1.13.0/Logs/Logtivity_Abstract_Logger.php (added)
-
tags/1.13.0/Logs/Memberpress (added)
-
tags/1.13.0/Logs/Memberpress/Logtivity_Memberpress.php (added)
-
tags/1.13.0/Services (added)
-
tags/1.13.0/Services/Logtivity_Api.php (added)
-
tags/1.13.0/Services/Logtivity_Logger.php (added)
-
tags/1.13.0/Services/Logtivity_Register_Site.php (added)
-
tags/1.13.0/assets (added)
-
tags/1.13.0/assets/admin.css (added)
-
tags/1.13.0/assets/app.js (added)
-
tags/1.13.0/assets/logtivity-logo.svg (added)
-
tags/1.13.0/logtivity.php (added)
-
tags/1.13.0/readme.md (added)
-
tags/1.13.0/readme.txt (added)
-
tags/1.13.0/views (added)
-
tags/1.13.0/views/_admin-footer.php (added)
-
tags/1.13.0/views/_admin-header.php (added)
-
tags/1.13.0/views/_admin-sidebar.php (added)
-
tags/1.13.0/views/_log-show.php (added)
-
tags/1.13.0/views/_logs-loop.php (added)
-
tags/1.13.0/views/activation.php (added)
-
tags/1.13.0/views/log-index.php (added)
-
tags/1.13.0/views/settings.php (added)
-
tags/1.13.0/views/site-url-changed-notice.php (added)
-
trunk/Logs/Core/Logtivity_Post.php (modified) (1 diff)
-
trunk/Logs/Core/Logtivity_Term.php (modified) (2 diffs)
-
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_Post.php
r2642335 r2699882 30 30 if ($old_status != 'publish' && $new_status == 'publish') { 31 31 $this->action = $this->getPostTypeLabel($post->ID) . ' Published'; 32 return; 32 33 } 33 34 34 35 if ($old_status == 'publish' && $new_status == 'draft') { 35 36 $this->action = $this->getPostTypeLabel($post->ID) . ' Unpublished'; 37 return; 36 38 } 39 40 if ($old_status != $new_status) { 41 Logtivity_Logger::log() 42 ->setAction( 43 $this->getPostTypeLabel($post->ID) . ' Status changed from '.$old_status.' to '.$new_status 44 ) 45 ->setContext($post->post_title) 46 ->addMeta('Post ID', $post->ID) 47 ->addMeta('Post Type', $post->post_type) 48 ->send(); 49 } 50 37 51 } 38 52 -
logtivity/trunk/Logs/Core/Logtivity_Term.php
r2698792 r2699882 6 6 { 7 7 add_action( 'edited_terms', [$this, 'termUpdated'], 10, 2 ); 8 add_action( 'created_term', [$this, 'termCreated'], 10, 3 ); 9 add_action( 'delete_term', [$this, 'termDeleted'], 10, 5); 10 } 11 12 public function termCreated($term_id, $tt_id, $taxonomy) 13 { 14 $term = get_term_by('id', $term_id, $taxonomy); 15 16 return Logtivity_Logger::log() 17 ->setAction('Term Created') 18 ->setContext($term->name) 19 ->addMeta('Term ID', $term->term_id) 20 ->addMeta('Slug', $term->slug) 21 ->addMeta('Taxonomy', $term->taxonomy) 22 ->addMeta('Edit Link', get_edit_term_link($term)) 23 ->send(); 8 24 } 9 25 … … 21 37 ->send(); 22 38 } 39 40 public function termDeleted($term, $tt_id, $taxonomy, $deleted_term, $object_ids) 41 { 42 return Logtivity_Logger::log() 43 ->setAction('Term Deleted') 44 ->setContext($deleted_term->name) 45 ->addMeta('Term ID', $deleted_term->term_id) 46 ->addMeta('Slug', $deleted_term->slug) 47 ->addMeta('Taxonomy', $deleted_term->taxonomy) 48 ->send(); 49 } 23 50 } 24 51 -
logtivity/trunk/logtivity.php
r2698795 r2699882 5 5 * Plugin URI: https://logtivity.io 6 6 * Description: Dedicated Event Monitoring for WordPress using Logtivity.io. 7 * Version: 1.1 2.07 * Version: 1.13.0 8 8 * Author: Logtivity 9 9 * Text Domain: logtivity … … 12 12 class Logtivity 13 13 { 14 protected $version = '1.1 2.0';14 protected $version = '1.13.0'; 15 15 16 16 /** -
logtivity/trunk/readme.md
r2698790 r2699882 5 5 Requires at least: 4.7 6 6 Tested up to: 5.8 7 Stable tag: 1.1 2.07 Stable tag: 1.13.0 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 279 279 == Changelog == 280 280 281 = 1.13.0 = 282 283 _Release Date – Saturday 26th March 2022_ 284 285 * Add logging of Term Created and Deleted. 286 281 287 = 1.12.0 = 282 288 -
logtivity/trunk/readme.txt
r2698790 r2699882 5 5 Requires at least: 4.7 6 6 Tested up to: 5.8 7 Stable tag: 1.1 2.07 Stable tag: 1.13.0 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 279 279 == Changelog == 280 280 281 = 1.13.0 = 282 283 _Release Date – Saturday 26th March 2022_ 284 285 * Add logging of Term Created and Deleted. 286 281 287 = 1.12.0 = 282 288
Note: See TracChangeset
for help on using the changeset viewer.