Activity Log - Version 2.3.6

Version Description

  • Fix! - Admin table filters
Download this release

Release Info

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

Code changes from version 2.3.5 to 2.3.6

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.3.5
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.3.6
9
  Text Domain: aryo-activity-log
10
  License: GPLv2 or later
11
 
classes/class-aal-activity-log-list-table.php CHANGED
@@ -16,8 +16,9 @@ class AAL_Activity_Log_List_Table extends WP_List_Table {
16
  protected function _get_allow_caps() {
17
  if ( empty( $this->_allow_caps ) ) {
18
  $user = get_user_by( 'id', get_current_user_id() );
19
- if ( ! $user )
20
  wp_die( 'Not allowed here.' );
 
21
 
22
  $user_cap = strtolower( key( $user->caps ) );
23
  $allow_caps = array();
@@ -25,17 +26,20 @@ class AAL_Activity_Log_List_Table extends WP_List_Table {
25
  foreach ( $this->_caps as $key => $cap_allow ) {
26
  if ( $key === $user_cap ) {
27
  $allow_caps = array_merge( $allow_caps, $cap_allow );
 
28
  break;
29
  }
30
  }
31
 
32
  // TODO: Find better way to Multisite compatibility.
33
- if ( is_super_admin() || current_user_can( 'view_all_aryo_activity_log' ) )
34
  $allow_caps = $this->_caps['administrator'];
 
35
 
36
- if ( empty( $allow_caps ) )
37
  wp_die( 'Not allowed here.' );
38
-
 
39
  $this->_allow_caps = array_unique( $allow_caps );
40
  }
41
  return $this->_allow_caps;
@@ -50,8 +54,9 @@ class AAL_Activity_Log_List_Table extends WP_List_Table {
50
  }
51
  }
52
 
53
- if ( empty( $allow_modules ) )
54
  wp_die( 'Not allowed here.' );
 
55
 
56
  $allow_modules = array_unique( $allow_modules );
57
 
@@ -431,7 +436,7 @@ class AAL_Activity_Log_List_Table extends WP_List_Table {
431
 
432
  if ( isset( $_REQUEST['s'] ) ) {
433
  // Search only searches 'description' fields.
434
- $where .= $wpdb->prepare( ' AND `object_name` LIKE %%%s%%', '%' . $wpdb->esc_like( $_REQUEST['s'] ) . '%' );
435
  }
436
 
437
  $offset = ( $this->get_pagenum() - 1 ) * $items_per_page;
16
  protected function _get_allow_caps() {
17
  if ( empty( $this->_allow_caps ) ) {
18
  $user = get_user_by( 'id', get_current_user_id() );
19
+ if ( ! $user ) {
20
  wp_die( 'Not allowed here.' );
21
+ }
22
 
23
  $user_cap = strtolower( key( $user->caps ) );
24
  $allow_caps = array();
26
  foreach ( $this->_caps as $key => $cap_allow ) {
27
  if ( $key === $user_cap ) {
28
  $allow_caps = array_merge( $allow_caps, $cap_allow );
29
+
30
  break;
31
  }
32
  }
33
 
34
  // TODO: Find better way to Multisite compatibility.
35
+ if ( is_super_admin() || current_user_can( 'view_all_aryo_activity_log' ) ) {
36
  $allow_caps = $this->_caps['administrator'];
37
+ }
38
 
39
+ if ( empty( $allow_caps ) ) {
40
  wp_die( 'Not allowed here.' );
41
+ }
42
+
43
  $this->_allow_caps = array_unique( $allow_caps );
44
  }
45
  return $this->_allow_caps;
54
  }
55
  }
56
 
57
+ if ( empty( $allow_modules ) ) {
58
  wp_die( 'Not allowed here.' );
59
+ }
60
 
61
  $allow_modules = array_unique( $allow_modules );
62
 
436
 
437
  if ( isset( $_REQUEST['s'] ) ) {
438
  // Search only searches 'description' fields.
439
+ $where .= $wpdb->prepare( ' AND `object_name` LIKE %s', '%' . $wpdb->esc_like( $_REQUEST['s'] ) . '%' );
440
  }
441
 
442
  $offset = ( $this->get_pagenum() - 1 ) * $items_per_page;
classes/class-aal-settings.php CHANGED
@@ -486,7 +486,7 @@ final class AAL_Settings_Fields {
486
  <option value="<?php echo esc_attr( $option_key ); ?>" <?php selected( $option_key, $row_value ); ?>><?php echo esc_html( $option_value ); ?></option>
487
  <?php endforeach; ?>
488
  </select>
489
- <a href="#" class="aal-new-rule button"><small>+</small> and</a>
490
  <a href="#" class="aal-delete-rule button">&times;</a>
491
  </li>
492
  <?php endforeach; ?>
486
  <option value="<?php echo esc_attr( $option_key ); ?>" <?php selected( $option_key, $row_value ); ?>><?php echo esc_html( $option_value ); ?></option>
487
  <?php endforeach; ?>
488
  </select>
489
+ <a href="#" class="aal-new-rule button"><small>+</small> <?php _e( 'and', 'aryo-activity-log' ); ?></a>
490
  <a href="#" class="aal-delete-rule button">&times;</a>
491
  </li>
492
  <?php endforeach; ?>
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.8
6
- Stable tag: 2.3.5
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.
@@ -100,6 +100,9 @@ Would you like to like to contribute to Activity Log? You are more than welcome
100
 
101
  == Changelog ==
102
 
 
 
 
103
  = 2.3.5 =
104
  * Fix! - Added comparability for WordPress 4.8.2 & 4.7.6
105
 
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.8
6
+ Stable tag: 2.3.6
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.
100
 
101
  == Changelog ==
102
 
103
+ = 2.3.6 =
104
+ * Fix! - Admin table filters
105
+
106
  = 2.3.5 =
107
  * Fix! - Added comparability for WordPress 4.8.2 & 4.7.6
108