Activity Log - Version 2.4.1

Version Description

  • Fix : Escape title before saving to database
Download this release

Release Info

Developer KingYes
Plugin Icon 128x128 Activity Log
Version 2.4.1
Comparing to
See all releases

Code changes from version 2.4.0 to 2.4.1

aryo-activity-log.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://wordpress.org/plugins/aryo-activity-log/
5
  Description: Get aware of any activities that are taking place on your dashboard! Imagine it like a black-box for your WordPress site. e.g. post was deleted, plugin was activated, user logged in or logged out - it's all these for you to see.
6
  Author: Yakir Sitbon, Maor Chasen, Ariel Klikstein
7
  Author URI: http://pojo.me/
8
- Version: 2.4.0
9
  Text Domain: aryo-activity-log
10
  License: GPLv2 or later
11
 
5
  Description: Get aware of any activities that are taking place on your dashboard! Imagine it like a black-box for your WordPress site. e.g. post was deleted, plugin was activated, user logged in or logged out - it's all these for you to see.
6
  Author: Yakir Sitbon, Maor Chasen, Ariel Klikstein
7
  Author URI: http://pojo.me/
8
+ Version: 2.4.1
9
  Text Domain: aryo-activity-log
10
  License: GPLv2 or later
11
 
classes/class-aal-activity-log-list-table.php CHANGED
@@ -202,16 +202,16 @@ class AAL_Activity_Log_List_Table extends WP_List_Table {
202
  }
203
 
204
  public function column_description( $item ) {
205
- $return = $item->object_name;
206
 
207
  switch ( $item->object_type ) {
208
  case 'Post' :
209
- $return = sprintf( '<a href="%s">%s</a>', get_edit_post_link( $item->object_id ), $item->object_name );
210
  break;
211
 
212
  case 'Taxonomy' :
213
  if ( ! empty( $item->object_id ) )
214
- $return = sprintf( '<a href="%s">%s</a>', get_edit_term_link( $item->object_id, $item->object_subtype ), $item->object_name );
215
  break;
216
 
217
  case 'Comments' :
@@ -224,7 +224,7 @@ class AAL_Activity_Log_List_Table extends WP_List_Table {
224
  if ( 'all' === $item->object_name ) {
225
  $return = __( 'All', 'aryo-activity-log' );
226
  } else {
227
- $pt = get_post_type_object( $item->object_name );
228
  $return = ! empty( $pt->label ) ? $pt->label : $item->object_name;
229
  }
230
  break;
202
  }
203
 
204
  public function column_description( $item ) {
205
+ $return = esc_html( $item->object_name );
206
 
207
  switch ( $item->object_type ) {
208
  case 'Post' :
209
+ $return = sprintf( '<a href="%s">%s</a>', get_edit_post_link( $item->object_id ), esc_html( $item->object_name ) );
210
  break;
211
 
212
  case 'Taxonomy' :
213
  if ( ! empty( $item->object_id ) )
214
+ $return = sprintf( '<a href="%s">%s</a>', get_edit_term_link( $item->object_id, $item->object_subtype ), esc_html( $item->object_name ) );
215
  break;
216
 
217
  case 'Comments' :
224
  if ( 'all' === $item->object_name ) {
225
  $return = __( 'All', 'aryo-activity-log' );
226
  } else {
227
+ $pt = get_post_type_object( $item->object_name );
228
  $return = ! empty( $pt->label ) ? $pt->label : $item->object_name;
229
  }
230
  break;
hooks/class-aal-hook-attachment.php CHANGED
@@ -11,7 +11,7 @@ class AAL_Hook_Attachment extends AAL_Hook_Base {
11
  'object_type' => 'Attachment',
12
  'object_subtype' => $post->post_type,
13
  'object_id' => $attachment_id,
14
- 'object_name' => get_the_title( $post->ID ),
15
  ) );
16
  }
17
 
@@ -35,4 +35,4 @@ class AAL_Hook_Attachment extends AAL_Hook_Base {
35
  parent::__construct();
36
  }
37
 
38
- }
11
  'object_type' => 'Attachment',
12
  'object_subtype' => $post->post_type,
13
  'object_id' => $attachment_id,
14
+ 'object_name' => esc_html( get_the_title( $post->ID ) ),
15
  ) );
16
  }
17
 
35
  parent::__construct();
36
  }
37
 
38
+ }
hooks/class-aal-hook-comments.php CHANGED
@@ -11,7 +11,7 @@ class AAL_Hook_Comments extends AAL_Hook_Base {
11
  'action' => $action,
12
  'object_type' => 'Comments',
13
  'object_subtype' => get_post_type( $comment->comment_post_ID ),
14
- 'object_name' => get_the_title( $comment->comment_post_ID ),
15
  'object_id' => $id,
16
  ) );
17
  }
@@ -71,4 +71,4 @@ class AAL_Hook_Comments extends AAL_Hook_Base {
71
  parent::__construct();
72
  }
73
 
74
- }
11
  'action' => $action,
12
  'object_type' => 'Comments',
13
  'object_subtype' => get_post_type( $comment->comment_post_ID ),
14
+ 'object_name' => esc_html( get_the_title( $comment->comment_post_ID ) ),
15
  'object_id' => $id,
16
  ) );
17
  }
71
  parent::__construct();
72
  }
73
 
74
+ }
hooks/class-aal-hook-posts.php CHANGED
@@ -4,7 +4,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
4
  class AAL_Hook_Posts extends AAL_Hook_Base {
5
 
6
  protected function _draft_or_post_title( $post = 0 ) {
7
- $title = get_the_title( $post );
8
 
9
  if ( empty( $title ) )
10
  $title = __( '(no title)', 'aryo-activity-log' );
4
  class AAL_Hook_Posts extends AAL_Hook_Base {
5
 
6
  protected function _draft_or_post_title( $post = 0 ) {
7
+ $title = esc_html( get_the_title( $post ) );
8
 
9
  if ( empty( $title ) )
10
  $title = __( '(no title)', 'aryo-activity-log' );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: pojo.me, KingYes, ariel.k, maor
3
  Tags: automation, actions, activity, Activity Log, admin, admin actions, administration, analytics, audit, audit log, audit logs, bbPress, changes, dashboard, email notifications, event, event log, log, logger, Logs, monitor, multi-users, multisite, notifications, security, security audit trail, security event log, stats, stream, tracking, troubleshooting, user activity report, user tracking, woocommerce, bbPress
4
  Requires at least: 4.4
5
  Tested up to: 4.9
6
- Stable tag: 2.4.0
7
  License: GPLv2 or later
8
 
9
  The #1 Activity Log plugin helps you monitor & log all changes and activities on your site, so you can run a safer, more organized WordPress site.
@@ -75,7 +75,7 @@ The plugin does not require any kind of setup. It works out of the box (and that
75
  We’re planning to add a lot more features in the upcoming releases. If you think we’re missing something big time, please post your suggestions in the plugin’s forum.
76
 
77
  <h4>Contributions:</h4>
78
- Would you like to like to contribute to Activity Log? You are more than welcome to submit your pull requests on the [GitHub repo](https://github.com/KingYes/wordpress-aryo-activity-log). Also, if you have any notes about the code, please open a ticket on the issue tracker.
79
 
80
  == Installation ==
81
 
@@ -105,8 +105,11 @@ Would you like to like to contribute to Activity Log? You are more than welcome
105
 
106
  == Changelog ==
107
 
 
 
 
108
  = 2.4.0 =
109
- * New! Export your Activity Log data records to CSV ([#70](https://github.com/pojome/elementor/issues/70))
110
 
111
  = 2.3.6 =
112
  * Fix! - Admin table filters
@@ -129,8 +132,8 @@ Would you like to like to contribute to Activity Log? You are more than welcome
129
 
130
  = 2.3.0 =
131
  * Tweak! - All translates moved to [GlotPress](https://translate.wordpress.org/projects/wp-plugins/aryo-activity-log)
132
- * Tweak! - Added restore status for Posts ([#46](https://github.com/KingYes/wordpress-aryo-activity-log/issues/46))
133
- * Tweak! - A11y changes for WordPress 4.4 which requires `h1` tags ([#84](https://github.com/KingYes/wordpress-aryo-activity-log/issues/84))
134
  * Tweak! - Allow some ajax requests just for admin
135
 
136
  = 2.2.12 =
@@ -155,7 +158,7 @@ Would you like to like to contribute to Activity Log? You are more than welcome
155
  * Tested up to WordPress v4.4
156
 
157
  = 2.2.6 =
158
- * Tweak! - Added sort by IP address ([#77](https://github.com/KingYes/wordpress-aryo-activity-log/issues/77))
159
  * Tweak! - Added more actions/types in notification
160
 
161
  = 2.2.5 =
@@ -165,7 +168,7 @@ Would you like to like to contribute to Activity Log? You are more than welcome
165
  * Tested up to WordPress v4.3
166
 
167
  = 2.2.4 =
168
- * New! - Added translate: Czech (cs_CZ) - Thanks to Martin Kokeš ([#76](https://github.com/KingYes/wordpress-aryo-activity-log/pull/76))
169
 
170
  = 2.2.3 =
171
  * Tweak! - Added more filters in table list columns
@@ -195,7 +198,7 @@ Would you like to like to contribute to Activity Log? You are more than welcome
195
  * New! Added translate: Persian (fa_IR) - Thanks to [Promising](http://vwp.ir/)
196
 
197
  = 2.1.13 =
198
- * New! Added filter by User Roles ([#67](https://github.com/KingYes/wordpress-aryo-activity-log/issues/67))
199
 
200
  = 2.1.12 =
201
  * New! Added translate: Turkish (tr_TR) - Thanks to [Ahmet Kolcu](http://ahmetkolcu.org/)
@@ -208,33 +211,33 @@ Would you like to like to contribute to Activity Log? You are more than welcome
208
  * New! Added translate: Portuguese (pt_BR) - Thanks to [Criação de Sites](http://www.techload.com.br/criacao-de-sites-ribeirao-preto)
209
 
210
  = 2.1.9 =
211
- * New! Store all WooCommerce settings ([#62](https://github.com/KingYes/wordpress-aryo-activity-log/issues/62))
212
  * Tested up to WordPress v4.0
213
 
214
  = 2.1.8 =
215
- * New! Now tracking when plugins installed and updated ([#59](https://github.com/KingYes/wordpress-aryo-activity-log/pull/59) and [#43](https://github.com/KingYes/wordpress-aryo-activity-log/issues/43))
216
 
217
  = 2.1.7 =
218
- * New! Now tracking when user download export file from the site ([#58](https://github.com/KingYes/wordpress-aryo-activity-log/issues/58) and [#63](https://github.com/KingYes/wordpress-aryo-activity-log/pull/63))
219
 
220
  = 2.1.6 =
221
  * Tested up to WordPress v3.9.2
222
 
223
  = 2.1.5 =
224
- * New! Now tracking when theme installed, updated, deleted ([#44](https://github.com/KingYes/wordpress-aryo-activity-log/issues/44))
225
 
226
  = 2.1.4 =
227
- * Fixed! Store real IP address in Proxy too ([#53](https://github.com/KingYes/wordpress-aryo-activity-log/issues/53))
228
 
229
  = 2.1.3 =
230
- * New! Added translate: Dutch (nl_NL) - Thanks to [Tom Aalbers](http://www.dtaalbers.com/) ([#55](https://github.com/KingYes/wordpress-aryo-activity-log/issues/55))
231
 
232
  = 2.1.2 =
233
  * Tweak! Update translate: Hebrew (he_IL)
234
 
235
  = 2.1.1 =
236
- * New! Track about WordPress core update (manual or auto-updated) ([#41](https://github.com/KingYes/wordpress-aryo-activity-log/issues/41))
237
- * New! Track post comments (created, approved, unproved, trashed, untrashed, spammed, unspammed, deleted) ([#42](https://github.com/KingYes/wordpress-aryo-activity-log/issues/42))
238
 
239
  = 2.1.0 =
240
  * New! Personally-tailored notifications that can be triggered by various types of events, users and action type (currently only email notifications are supported)
@@ -245,7 +248,7 @@ Would you like to like to contribute to Activity Log? You are more than welcome
245
  * Tested up to WordPress v3.9.0
246
 
247
  = 2.0.6 =
248
- * Fixed! Random fatal error ([topic](https://github.com/KingYes/wordpress-aryo-activity-log/issues/32))
249
 
250
  = 2.0.5 =
251
  * New! Register `aal_init_caps` filter.
3
  Tags: automation, actions, activity, Activity Log, admin, admin actions, administration, analytics, audit, audit log, audit logs, bbPress, changes, dashboard, email notifications, event, event log, log, logger, Logs, monitor, multi-users, multisite, notifications, security, security audit trail, security event log, stats, stream, tracking, troubleshooting, user activity report, user tracking, woocommerce, bbPress
4
  Requires at least: 4.4
5
  Tested up to: 4.9
6
+ Stable tag: 2.4.1
7
  License: GPLv2 or later
8
 
9
  The #1 Activity Log plugin helps you monitor & log all changes and activities on your site, so you can run a safer, more organized WordPress site.
75
  We’re planning to add a lot more features in the upcoming releases. If you think we’re missing something big time, please post your suggestions in the plugin’s forum.
76
 
77
  <h4>Contributions:</h4>
78
+ Would you like to like to contribute to Activity Log? You are more than welcome to submit your pull requests on the [GitHub repo](https://github.com/pojome/activity-log). Also, if you have any notes about the code, please open a ticket on the issue tracker.
79
 
80
  == Installation ==
81
 
105
 
106
  == Changelog ==
107
 
108
+ = 2.4.1 =
109
+ * Fix : Escape title before saving to database
110
+
111
  = 2.4.0 =
112
+ * New! Export your Activity Log data records to CSV ([#70](https://github.com/pojome/activity-log/issues/70))
113
 
114
  = 2.3.6 =
115
  * Fix! - Admin table filters
132
 
133
  = 2.3.0 =
134
  * Tweak! - All translates moved to [GlotPress](https://translate.wordpress.org/projects/wp-plugins/aryo-activity-log)
135
+ * Tweak! - Added restore status for Posts ([#46](https://github.com/pojome/activity-log/issues/46))
136
+ * Tweak! - A11y changes for WordPress 4.4 which requires `h1` tags ([#84](https://github.com/pojome/activity-log/issues/84))
137
  * Tweak! - Allow some ajax requests just for admin
138
 
139
  = 2.2.12 =
158
  * Tested up to WordPress v4.4
159
 
160
  = 2.2.6 =
161
+ * Tweak! - Added sort by IP address ([#77](https://github.com/pojome/activity-log/issues/77))
162
  * Tweak! - Added more actions/types in notification
163
 
164
  = 2.2.5 =
168
  * Tested up to WordPress v4.3
169
 
170
  = 2.2.4 =
171
+ * New! - Added translate: Czech (cs_CZ) - Thanks to Martin Kokeš ([#76](https://github.com/pojome/activity-log/pull/76))
172
 
173
  = 2.2.3 =
174
  * Tweak! - Added more filters in table list columns
198
  * New! Added translate: Persian (fa_IR) - Thanks to [Promising](http://vwp.ir/)
199
 
200
  = 2.1.13 =
201
+ * New! Added filter by User Roles ([#67](https://github.com/pojome/activity-log/issues/67))
202
 
203
  = 2.1.12 =
204
  * New! Added translate: Turkish (tr_TR) - Thanks to [Ahmet Kolcu](http://ahmetkolcu.org/)
211
  * New! Added translate: Portuguese (pt_BR) - Thanks to [Criação de Sites](http://www.techload.com.br/criacao-de-sites-ribeirao-preto)
212
 
213
  = 2.1.9 =
214
+ * New! Store all WooCommerce settings ([#62](https://github.com/pojome/activity-log/issues/62))
215
  * Tested up to WordPress v4.0
216
 
217
  = 2.1.8 =
218
+ * New! Now tracking when plugins installed and updated ([#59](https://github.com/pojome/activity-log/pull/59) and [#43](https://github.com/pojome/activity-log/issues/43))
219
 
220
  = 2.1.7 =
221
+ * New! Now tracking when user download export file from the site ([#58](https://github.com/pojome/activity-log/issues/58) and [#63](https://github.com/pojome/activity-log/pull/63))
222
 
223
  = 2.1.6 =
224
  * Tested up to WordPress v3.9.2
225
 
226
  = 2.1.5 =
227
+ * New! Now tracking when theme installed, updated, deleted ([#44](https://github.com/pojome/activity-log/issues/44))
228
 
229
  = 2.1.4 =
230
+ * Fixed! Store real IP address in Proxy too ([#53](https://github.com/pojome/activity-log/issues/53))
231
 
232
  = 2.1.3 =
233
+ * New! Added translate: Dutch (nl_NL) - Thanks to [Tom Aalbers](http://www.dtaalbers.com/) ([#55](https://github.com/pojome/activity-log/issues/55))
234
 
235
  = 2.1.2 =
236
  * Tweak! Update translate: Hebrew (he_IL)
237
 
238
  = 2.1.1 =
239
+ * New! Track about WordPress core update (manual or auto-updated) ([#41](https://github.com/pojome/activity-log/issues/41))
240
+ * New! Track post comments (created, approved, unproved, trashed, untrashed, spammed, unspammed, deleted) ([#42](https://github.com/pojome/activity-log/issues/42))
241
 
242
  = 2.1.0 =
243
  * New! Personally-tailored notifications that can be triggered by various types of events, users and action type (currently only email notifications are supported)
248
  * Tested up to WordPress v3.9.0
249
 
250
  = 2.0.6 =
251
+ * Fixed! Random fatal error ([topic](https://github.com/pojome/activity-log/issues/32))
252
 
253
  = 2.0.5 =
254
  * New! Register `aal_init_caps` filter.