Activity Log - Version 2.3.1

Version Description

  • Tweak! - Added seconds in time column
  • Tweak! - Rearrange filters in list table
Download this release

Release Info

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

Code changes from version 2.3.0 to 2.3.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.3.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.3.1
9
  Text Domain: aryo-activity-log
10
  License: GPLv2 or later
11
 
classes/class-aal-activity-log-list-table.php CHANGED
@@ -141,7 +141,7 @@ class AAL_Activity_Log_List_Table extends WP_List_Table {
141
  case 'date' :
142
  $return = sprintf( '<strong>' . __( '%s ago', 'aryo-activity-log' ) . '</strong>', human_time_diff( $item->hist_time, current_time( 'timestamp' ) ) );
143
  $return .= '<br />' . date( 'd/m/Y', $item->hist_time );
144
- $return .= '<br />' . date( 'H:i', $item->hist_time );
145
  break;
146
  case 'ip' :
147
  $return = $item->hist_ip;
@@ -269,6 +269,37 @@ class AAL_Activity_Log_List_Table extends WP_List_Table {
269
  $wpdb->activity_log
270
  ) );
271
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
272
  if ( $users ) {
273
  if ( ! isset( $_REQUEST['capshow'] ) )
274
  $_REQUEST['capshow'] = '';
@@ -312,17 +343,6 @@ class AAL_Activity_Log_List_Table extends WP_List_Table {
312
  }
313
  }
314
 
315
- $types = $wpdb->get_results( $wpdb->prepare(
316
- 'SELECT DISTINCT %1$s FROM `%2$s`
317
- WHERE 1 = 1
318
- ' . $this->_get_where_by_role() . '
319
- GROUP BY `%1$s`
320
- ORDER BY `%1$s`
321
- ;',
322
- 'object_type',
323
- $wpdb->activity_log
324
- ) );
325
-
326
  if ( $types ) {
327
  if ( ! isset( $_REQUEST['typeshow'] ) )
328
  $_REQUEST['typeshow'] = '';
@@ -363,26 +383,6 @@ class AAL_Activity_Log_List_Table extends WP_List_Table {
363
  echo '</select>';
364
  }
365
 
366
- // Make sure we get items for filter.
367
- if ( $users || $types ) {
368
- if ( ! isset( $_REQUEST['dateshow'] ) )
369
- $_REQUEST['dateshow'] = '';
370
-
371
- $date_options = array(
372
- '' => __( 'All Time', 'aryo-activity-log' ),
373
- 'today' => __( 'Today', 'aryo-activity-log' ),
374
- 'yesterday' => __( 'Yesterday', 'aryo-activity-log' ),
375
- 'week' => __( 'Week', 'aryo-activity-log' ),
376
- 'month' => __( 'Month', 'aryo-activity-log' ),
377
- );
378
- echo '<select name="dateshow" id="hs-filter-date">';
379
- foreach ( $date_options as $key => $value )
380
- printf( '<option value="%1$s"%2$s>%3$s</option>', $key, selected( $_REQUEST['dateshow'], $key, false ), $value );
381
- echo '</select>';
382
-
383
- submit_button( __( 'Filter', 'aryo-activity-log' ), 'button', false, false, array( 'id' => 'activity-query-submit' ) );
384
- }
385
-
386
  echo '</div>';
387
  }
388
 
141
  case 'date' :
142
  $return = sprintf( '<strong>' . __( '%s ago', 'aryo-activity-log' ) . '</strong>', human_time_diff( $item->hist_time, current_time( 'timestamp' ) ) );
143
  $return .= '<br />' . date( 'd/m/Y', $item->hist_time );
144
+ $return .= '<br />' . date( 'H:i:s', $item->hist_time );
145
  break;
146
  case 'ip' :
147
  $return = $item->hist_ip;
269
  $wpdb->activity_log
270
  ) );
271
 
272
+ $types = $wpdb->get_results( $wpdb->prepare(
273
+ 'SELECT DISTINCT %1$s FROM `%2$s`
274
+ WHERE 1 = 1
275
+ ' . $this->_get_where_by_role() . '
276
+ GROUP BY `%1$s`
277
+ ORDER BY `%1$s`
278
+ ;',
279
+ 'object_type',
280
+ $wpdb->activity_log
281
+ ) );
282
+
283
+ // Make sure we get items for filter.
284
+ if ( $users || $types ) {
285
+ if ( ! isset( $_REQUEST['dateshow'] ) )
286
+ $_REQUEST['dateshow'] = '';
287
+
288
+ $date_options = array(
289
+ '' => __( 'All Time', 'aryo-activity-log' ),
290
+ 'today' => __( 'Today', 'aryo-activity-log' ),
291
+ 'yesterday' => __( 'Yesterday', 'aryo-activity-log' ),
292
+ 'week' => __( 'Week', 'aryo-activity-log' ),
293
+ 'month' => __( 'Month', 'aryo-activity-log' ),
294
+ );
295
+ echo '<select name="dateshow" id="hs-filter-date">';
296
+ foreach ( $date_options as $key => $value )
297
+ printf( '<option value="%1$s"%2$s>%3$s</option>', $key, selected( $_REQUEST['dateshow'], $key, false ), $value );
298
+ echo '</select>';
299
+
300
+ submit_button( __( 'Filter', 'aryo-activity-log' ), 'button', false, false, array( 'id' => 'activity-query-submit' ) );
301
+ }
302
+
303
  if ( $users ) {
304
  if ( ! isset( $_REQUEST['capshow'] ) )
305
  $_REQUEST['capshow'] = '';
343
  }
344
  }
345
 
 
 
 
 
 
 
 
 
 
 
 
346
  if ( $types ) {
347
  if ( ! isset( $_REQUEST['typeshow'] ) )
348
  $_REQUEST['typeshow'] = '';
383
  echo '</select>';
384
  }
385
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
386
  echo '</div>';
387
  }
388
 
classes/class-aal-admin-ui.php CHANGED
@@ -189,7 +189,7 @@ class AAL_Admin_Ui {
189
  <div class="aal-notice-content">
190
  <h3><?php _e( 'Do You Like Activity Log? You\'ll Love Elementor!', 'aryo-activity-log' ); ?></h3>
191
  <p><?php _e( 'Create high-end, pixel perfect websites at record speeds. Any theme, any page, any design. The most advanced frontend drag & drop page builder.', 'aryo-activity-log' ); ?>
192
- <a href="<?php echo $install_url; ?>"><?php _e( 'Install Now For Free!', 'aryo-activity-log' ); ?></a></p>
193
  </div>
194
 
195
  <div class="aal-install-now">
189
  <div class="aal-notice-content">
190
  <h3><?php _e( 'Do You Like Activity Log? You\'ll Love Elementor!', 'aryo-activity-log' ); ?></h3>
191
  <p><?php _e( 'Create high-end, pixel perfect websites at record speeds. Any theme, any page, any design. The most advanced frontend drag & drop page builder.', 'aryo-activity-log' ); ?>
192
+ <a href="https://go.elementor.com/learn/" target="_blank"><?php _e( 'Learn more about Elementor', 'aryo-activity-log' ); ?></a>.</p>
193
  </div>
194
 
195
  <div class="aal-install-now">
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: pojo.me, KingYes, ariel.k, maor
3
  Tags: actions, activity, Activity Log, activity logs, admin, admin actions, administration, analytics, audit, audit log, audit logs, bbPress, change, 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, woocommerce log, woocommerce monitor, woocommerce monitoring, woocommrece security, wordpress activity log, WordPress Admin, wordpress admin monitoring, wordpress audit, wordpress email alerts, wordpress log, wordpress monitor, wordpress monitoring, wordpress multisite, wordpress security, wordpress security alerts, wordpress security audit log, wordpress security monitor, wordpress security plugin, wordpress user tracking
4
  Requires at least: 3.5
5
  Tested up to: 4.5
6
- Stable tag: 2.3.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.
@@ -100,6 +100,10 @@ Would you like to like to contribute to Activity Log? You are more than welcome
100
 
101
  == Changelog ==
102
 
 
 
 
 
103
  = 2.3.0 =
104
  * Tweak! - All translates moved to [GlotPress](https://translate.wordpress.org/projects/wp-plugins/aryo-activity-log)
105
  * Tweak! - Added restore status for Posts ([#46](https://github.com/KingYes/wordpress-aryo-activity-log/issues/46))
3
  Tags: actions, activity, Activity Log, activity logs, admin, admin actions, administration, analytics, audit, audit log, audit logs, bbPress, change, 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, woocommerce log, woocommerce monitor, woocommerce monitoring, woocommrece security, wordpress activity log, WordPress Admin, wordpress admin monitoring, wordpress audit, wordpress email alerts, wordpress log, wordpress monitor, wordpress monitoring, wordpress multisite, wordpress security, wordpress security alerts, wordpress security audit log, wordpress security monitor, wordpress security plugin, wordpress user tracking
4
  Requires at least: 3.5
5
  Tested up to: 4.5
6
+ Stable tag: 2.3.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.
100
 
101
  == Changelog ==
102
 
103
+ = 2.3.1 =
104
+ * Tweak! - Added seconds in time column
105
+ * Tweak! - Rearrange filters in list table
106
+
107
  = 2.3.0 =
108
  * Tweak! - All translates moved to [GlotPress](https://translate.wordpress.org/projects/wp-plugins/aryo-activity-log)
109
  * Tweak! - Added restore status for Posts ([#46](https://github.com/KingYes/wordpress-aryo-activity-log/issues/46))