Activity Log - Version 2.1.1

Version Description

  • New! Track about WordPress core update (manual or auto-updated) (#41)
  • New! Track post comments (created, approved, unproved, trashed, untrashed, spammed, unspammed, deleted) (#42)
Download this release

Release Info

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

Code changes from version 2.1.0 to 2.1.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://www.aryodigital.com
8
- Version: 2.1.0
9
  Text Domain: aryo-aal
10
  Domain Path: /language/
11
  License: GPLv2 or later
@@ -83,12 +83,12 @@ final class AAL_Main {
83
  protected function __construct() {
84
  global $wpdb;
85
 
86
- $this->ui = new AAL_Admin_Ui();
87
- $this->hooks = new AAL_Hooks();
88
- $this->settings = new AAL_Settings();
89
- $this->api = new AAL_API();
90
- $this->notifications = new AAL_Notifications();
91
- $this->help = new AAL_Help();
92
 
93
  // set up our DB name
94
  $wpdb->activity_log = $wpdb->prefix . '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://www.aryodigital.com
8
+ Version: 2.1.1
9
  Text Domain: aryo-aal
10
  Domain Path: /language/
11
  License: GPLv2 or later
83
  protected function __construct() {
84
  global $wpdb;
85
 
86
+ $this->ui = new AAL_Admin_Ui();
87
+ $this->hooks = new AAL_Hooks();
88
+ $this->settings = new AAL_Settings();
89
+ $this->api = new AAL_API();
90
+ $this->notifications = new AAL_Notifications();
91
+ $this->help = new AAL_Help();
92
 
93
  // set up our DB name
94
  $wpdb->activity_log = $wpdb->prefix . 'aryo_activity_log';
assets/js/settings.js CHANGED
@@ -1,3 +1,5 @@
 
 
1
  ( function ( $, undefined ) {
2
  var AAL = {
3
  $wrapper: {},
@@ -73,7 +75,7 @@
73
  addRule: function ( $el ) {
74
  this.counter++;
75
  var $copy = $el.clone(),
76
- curID = parseInt( $el.data( 'id' ) ),
77
  newID = this.counter;
78
 
79
  $copy.find( '[name]' ).each( function() {
@@ -107,18 +109,18 @@
107
  * Form serialization helper
108
  */
109
  $.fn.AALSerializeObject = function() {
110
- var o = {};
111
- var a = this.serializeArray();
112
- $.each(a, function() {
113
- if (o[this.name] !== undefined) {
114
- if (!o[this.name].push) {
115
- o[this.name] = [o[this.name]];
116
- }
117
- o[this.name].push(this.value || '');
118
- } else {
119
- o[this.name] = this.value || '';
120
- }
121
- });
122
- return o;
123
  };
124
  })( jQuery );
1
+ 'use strict';
2
+
3
  ( function ( $, undefined ) {
4
  var AAL = {
5
  $wrapper: {},
75
  addRule: function ( $el ) {
76
  this.counter++;
77
  var $copy = $el.clone(),
78
+ curID = parseInt( $el.data( 'id' ), null ),
79
  newID = this.counter;
80
 
81
  $copy.find( '[name]' ).each( function() {
109
  * Form serialization helper
110
  */
111
  $.fn.AALSerializeObject = function() {
112
+ var o = {};
113
+ var a = this.serializeArray();
114
+ $.each( a, function() {
115
+ if ( o[this.name] !== undefined ) {
116
+ if ( !o[this.name].push ) {
117
+ o[this.name] = [o[this.name]];
118
+ }
119
+ o[this.name].push( this.value || '' );
120
+ } else {
121
+ o[this.name] = this.value || '';
122
+ }
123
+ } );
124
+ return o;
125
  };
126
  })( jQuery );
classes/class-aal-activity-log-list-table.php CHANGED
@@ -66,9 +66,9 @@ class AAL_Activity_Log_List_Table extends WP_List_Table {
66
 
67
  $this->_roles = apply_filters( 'aal_init_roles', array(
68
  // admin
69
- 'manage_options' => array( 'Post', 'Taxonomy', 'User', 'Options', 'Attachment', 'Plugin', 'Widget', 'Theme', 'Menu' ),
70
  // editor
71
- 'edit_pages' => array( 'Post', 'Taxonomy', 'Attachment' ),
72
  ) );
73
 
74
  $this->_caps = apply_filters( 'aal_init_caps', array(
@@ -179,7 +179,14 @@ class AAL_Activity_Log_List_Table extends WP_List_Table {
179
  $return = sprintf( '<a href="%s">%s</a>', get_edit_term_link( $item->object_id, $item->object_subtype ), $item->object_name );
180
  break;
181
 
 
 
 
 
 
 
182
  case 'Options' :
 
183
  $return = __( $item->object_name, 'aryo-aal' );
184
  break;
185
  }
66
 
67
  $this->_roles = apply_filters( 'aal_init_roles', array(
68
  // admin
69
+ 'manage_options' => array( 'Core', 'Post', 'Taxonomy', 'User', 'Options', 'Attachment', 'Plugin', 'Widget', 'Theme', 'Menu', 'Comments' ),
70
  // editor
71
+ 'edit_pages' => array( 'Post', 'Taxonomy', 'Attachment', 'Comments' ),
72
  ) );
73
 
74
  $this->_caps = apply_filters( 'aal_init_caps', array(
179
  $return = sprintf( '<a href="%s">%s</a>', get_edit_term_link( $item->object_id, $item->object_subtype ), $item->object_name );
180
  break;
181
 
182
+ case 'Comments' :
183
+ if ( ! empty( $item->object_id ) && $comment = get_comment( $item->object_id ) ) {
184
+ $return = sprintf( '<a href="%s">%s #%d</a>', get_edit_comment_link( $item->object_id ), $item->object_name, $item->object_id );
185
+ }
186
+ break;
187
+
188
  case 'Options' :
189
+ case 'Core' :
190
  $return = __( $item->object_name, 'aryo-aal' );
191
  break;
192
  }
classes/class-aal-hooks.php CHANGED
@@ -19,6 +19,8 @@ class AAL_Hooks {
19
  include( plugin_dir_path( ACTIVITY_LOG__FILE__ ) . '/hooks/class-aal-hook-taxonomy.php' );
20
  include( plugin_dir_path( ACTIVITY_LOG__FILE__ ) . '/hooks/class-aal-hook-theme.php' );
21
  include( plugin_dir_path( ACTIVITY_LOG__FILE__ ) . '/hooks/class-aal-hook-widgets.php' );
 
 
22
 
23
  new AAL_Hook_User();
24
  new AAL_Hook_Attachment();
@@ -29,5 +31,7 @@ class AAL_Hooks {
29
  new AAL_Hook_Taxonomy();
30
  new AAL_Hook_Theme();
31
  new AAL_Hook_Widgets();
 
 
32
  }
33
  }
19
  include( plugin_dir_path( ACTIVITY_LOG__FILE__ ) . '/hooks/class-aal-hook-taxonomy.php' );
20
  include( plugin_dir_path( ACTIVITY_LOG__FILE__ ) . '/hooks/class-aal-hook-theme.php' );
21
  include( plugin_dir_path( ACTIVITY_LOG__FILE__ ) . '/hooks/class-aal-hook-widgets.php' );
22
+ include( plugin_dir_path( ACTIVITY_LOG__FILE__ ) . '/hooks/class-aal-hook-core.php' );
23
+ include( plugin_dir_path( ACTIVITY_LOG__FILE__ ) . '/hooks/class-aal-hook-comments.php' );
24
 
25
  new AAL_Hook_User();
26
  new AAL_Hook_Attachment();
31
  new AAL_Hook_Taxonomy();
32
  new AAL_Hook_Theme();
33
  new AAL_Hook_Widgets();
34
+ new AAL_Hook_Core();
35
+ new AAL_Hook_Comments();
36
  }
37
  }
hooks/class-aal-hook-comments.php ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ class AAL_Hook_Comments extends AAL_Hook_Base {
5
+
6
+ protected function _add_comment_log( $id, $action, $comment = null ) {
7
+ if ( is_null( $comment ) )
8
+ $comment = get_comment( $id );
9
+
10
+ aal_insert_log( array(
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
+ }
18
+
19
+ public function handle_comment_log( $comment_ID, $comment = null ) {
20
+ if ( is_null( $comment ) )
21
+ $comment = get_comment( $comment_ID );
22
+
23
+ $action = 'created';
24
+ switch ( current_filter() ) {
25
+ case 'wp_insert_comment' :
26
+ $action = 1 === (int) $comment->comment_approved ? 'approved' : 'pending';
27
+ break;
28
+
29
+ case 'edit_comment' :
30
+ $action = 'updated';
31
+ break;
32
+
33
+ case 'delete_comment' :
34
+ $action = 'deleted';
35
+ break;
36
+
37
+ case 'trash_comment' :
38
+ $action = 'trashed';
39
+ break;
40
+
41
+ case 'untrash_comment' :
42
+ $action = 'untrashed';
43
+ break;
44
+
45
+ case 'spam_comment' :
46
+ $action = 'spammed';
47
+ break;
48
+
49
+ case 'unspam_comment' :
50
+ $action = 'unspammed';
51
+ break;
52
+ }
53
+
54
+ $this->_add_comment_log( $comment_ID, $action, $comment );
55
+ }
56
+
57
+ public function hooks_transition_comment_status( $new_status, $old_status, $comment ) {
58
+ $this->_add_comment_log( $comment->comment_ID, $new_status, $comment );
59
+ }
60
+
61
+ public function __construct() {
62
+ add_action( 'wp_insert_comment', array( &$this, 'handle_comment_log' ), 10, 2 );
63
+ add_action( 'edit_comment', array( &$this, 'handle_comment_log' ) );
64
+ add_action( 'trash_comment', array( &$this, 'handle_comment_log' ) );
65
+ add_action( 'untrash_comment', array( &$this, 'handle_comment_log' ) );
66
+ add_action( 'spam_comment', array( &$this, 'handle_comment_log' ) );
67
+ add_action( 'unspam_comment', array( &$this, 'handle_comment_log' ) );
68
+ add_action( 'delete_comment', array( &$this, 'handle_comment_log' ) );
69
+ add_action( 'transition_comment_status', array( &$this, 'hooks_transition_comment_status' ), 10, 3 );
70
+
71
+ parent::__construct();
72
+ }
73
+
74
+ }
hooks/class-aal-hook-core.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ class AAL_Hook_Core extends AAL_Hook_Base {
5
+
6
+ public function _core_updated_successfully( $wp_version ) {
7
+ global $pagenow;
8
+
9
+ // Auto updated
10
+ if ( 'update-core.php' !== $pagenow )
11
+ $object_name = 'WordPress Auto Updated';
12
+ else
13
+ $object_name = 'WordPress Updated';
14
+
15
+ aal_insert_log( array(
16
+ 'action' => 'updated',
17
+ 'object_type' => 'Core',
18
+ 'object_id' => 0,
19
+ 'object_name' => $object_name,
20
+ ) );
21
+ }
22
+
23
+ public function __construct() {
24
+ add_action( '_core_updated_successfully', array( &$this, '_core_updated_successfully' ) );
25
+
26
+ parent::__construct();
27
+ }
28
+
29
+ }
hooks/class-aal-hook-menu.php CHANGED
@@ -6,9 +6,9 @@ class AAL_Hook_Menu extends AAL_Hook_Base {
6
  public function hooks_menu_updated( $nav_menu_selected_id ) {
7
  if ( $menu_object = wp_get_nav_menu_object( $nav_menu_selected_id ) ) {
8
  aal_insert_log( array(
9
- 'action' => 'updated',
10
- 'object_type' => 'Menu',
11
- 'object_name' => $menu_object->name,
12
  ) );
13
  }
14
  }
6
  public function hooks_menu_updated( $nav_menu_selected_id ) {
7
  if ( $menu_object = wp_get_nav_menu_object( $nav_menu_selected_id ) ) {
8
  aal_insert_log( array(
9
+ 'action' => 'updated',
10
+ 'object_type' => 'Menu',
11
+ 'object_name' => $menu_object->name,
12
  ) );
13
  }
14
  }
language/aryo-aal.pot CHANGED
@@ -6,9 +6,9 @@
6
  #, fuzzy
7
  msgid ""
8
  msgstr ""
9
- "Project-Id-Version: aryo-activity-log 2.1.0\n"
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2014-04-22 21:47+0000\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -63,39 +63,39 @@ msgid "Unknown"
63
  msgstr ""
64
 
65
  #: classes/class-aal-activity-log-list-table.php:151
66
- #: classes/class-aal-activity-log-list-table.php:229
67
  msgid "Guest"
68
  msgstr ""
69
 
70
- #: classes/class-aal-activity-log-list-table.php:240
71
  msgid "All Users"
72
  msgstr ""
73
 
74
- #: classes/class-aal-activity-log-list-table.php:267
75
  msgid "All Types"
76
  msgstr ""
77
 
78
- #: classes/class-aal-activity-log-list-table.php:278
79
  msgid "All Time"
80
  msgstr ""
81
 
82
- #: classes/class-aal-activity-log-list-table.php:279
83
  msgid "Today"
84
  msgstr ""
85
 
86
- #: classes/class-aal-activity-log-list-table.php:280
87
  msgid "Yesterday"
88
  msgstr ""
89
 
90
- #: classes/class-aal-activity-log-list-table.php:281
91
  msgid "Week"
92
  msgstr ""
93
 
94
- #: classes/class-aal-activity-log-list-table.php:282
95
  msgid "Month"
96
  msgstr ""
97
 
98
- #: classes/class-aal-activity-log-list-table.php:289
99
  msgid "Filter"
100
  msgstr ""
101
 
@@ -326,247 +326,291 @@ msgstr ""
326
  msgid "Taxonomy"
327
  msgstr ""
328
 
 
 
 
 
 
 
 
 
329
  #: language/strings.php:48
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
330
  msgid "blogname"
331
  msgstr ""
332
 
333
- #: language/strings.php:49
334
  msgid "blogdescription"
335
  msgstr ""
336
 
337
- #: language/strings.php:50
338
  msgid "siteurl"
339
  msgstr ""
340
 
341
- #: language/strings.php:51
342
  msgid "home"
343
  msgstr ""
344
 
345
- #: language/strings.php:52
346
  msgid "admin_email"
347
  msgstr ""
348
 
349
- #: language/strings.php:53
350
  msgid "users_can_register"
351
  msgstr ""
352
 
353
- #: language/strings.php:54
354
  msgid "default_role"
355
  msgstr ""
356
 
357
- #: language/strings.php:55
358
  msgid "timezone_string"
359
  msgstr ""
360
 
361
- #: language/strings.php:56
362
  msgid "date_format"
363
  msgstr ""
364
 
365
- #: language/strings.php:57
366
  msgid "time_format"
367
  msgstr ""
368
 
369
- #: language/strings.php:58
370
  msgid "start_of_week"
371
  msgstr ""
372
 
373
- #: language/strings.php:61
374
  msgid "use_smilies"
375
  msgstr ""
376
 
377
- #: language/strings.php:62
378
  msgid "use_balanceTags"
379
  msgstr ""
380
 
381
- #: language/strings.php:63
382
  msgid "default_category"
383
  msgstr ""
384
 
385
- #: language/strings.php:64
386
  msgid "default_post_format"
387
  msgstr ""
388
 
389
- #: language/strings.php:65
390
  msgid "mailserver_url"
391
  msgstr ""
392
 
393
- #: language/strings.php:66
394
  msgid "mailserver_login"
395
  msgstr ""
396
 
397
- #: language/strings.php:67
398
  msgid "mailserver_pass"
399
  msgstr ""
400
 
401
- #: language/strings.php:68
402
  msgid "default_email_category"
403
  msgstr ""
404
 
405
- #: language/strings.php:69
406
  msgid "ping_sites"
407
  msgstr ""
408
 
409
- #: language/strings.php:72
410
  msgid "show_on_front"
411
  msgstr ""
412
 
413
- #: language/strings.php:73
414
  msgid "page_on_front"
415
  msgstr ""
416
 
417
- #: language/strings.php:74
418
  msgid "page_for_posts"
419
  msgstr ""
420
 
421
- #: language/strings.php:75
422
  msgid "posts_per_page"
423
  msgstr ""
424
 
425
- #: language/strings.php:76
426
  msgid "posts_per_rss"
427
  msgstr ""
428
 
429
- #: language/strings.php:77
430
  msgid "rss_use_excerpt"
431
  msgstr ""
432
 
433
- #: language/strings.php:78
434
  msgid "blog_public"
435
  msgstr ""
436
 
437
- #: language/strings.php:81
438
  msgid "default_pingback_flag"
439
  msgstr ""
440
 
441
- #: language/strings.php:82
442
  msgid "default_ping_status"
443
  msgstr ""
444
 
445
- #: language/strings.php:83
446
  msgid "default_comment_status"
447
  msgstr ""
448
 
449
- #: language/strings.php:84
450
  msgid "require_name_email"
451
  msgstr ""
452
 
453
- #: language/strings.php:85
454
  msgid "comment_registration"
455
  msgstr ""
456
 
457
- #: language/strings.php:86
458
  msgid "close_comments_for_old_posts"
459
  msgstr ""
460
 
461
- #: language/strings.php:87
462
  msgid "close_comments_days_old"
463
  msgstr ""
464
 
465
- #: language/strings.php:88
466
  msgid "thread_comments"
467
  msgstr ""
468
 
469
- #: language/strings.php:89
470
  msgid "thread_comments_depth"
471
  msgstr ""
472
 
473
- #: language/strings.php:90
474
  msgid "page_comments"
475
  msgstr ""
476
 
477
- #: language/strings.php:91
478
  msgid "comments_per_page"
479
  msgstr ""
480
 
481
- #: language/strings.php:92
482
  msgid "default_comments_page"
483
  msgstr ""
484
 
485
- #: language/strings.php:93
486
  msgid "comment_order"
487
  msgstr ""
488
 
489
- #: language/strings.php:94
490
  msgid "comments_notify"
491
  msgstr ""
492
 
493
- #: language/strings.php:95
494
  msgid "moderation_notify"
495
  msgstr ""
496
 
497
- #: language/strings.php:96
498
  msgid "comment_moderation"
499
  msgstr ""
500
 
501
- #: language/strings.php:97
502
  msgid "comment_whitelist"
503
  msgstr ""
504
 
505
- #: language/strings.php:98
506
  msgid "comment_max_links"
507
  msgstr ""
508
 
509
- #: language/strings.php:99
510
  msgid "moderation_keys"
511
  msgstr ""
512
 
513
- #: language/strings.php:100
514
  msgid "blacklist_keys"
515
  msgstr ""
516
 
517
- #: language/strings.php:101
518
  msgid "show_avatars"
519
  msgstr ""
520
 
521
- #: language/strings.php:102
522
  msgid "avatar_rating"
523
  msgstr ""
524
 
525
- #: language/strings.php:103
526
  msgid "avatar_default"
527
  msgstr ""
528
 
529
- #: language/strings.php:106
530
  msgid "thumbnail_size_w"
531
  msgstr ""
532
 
533
- #: language/strings.php:107
534
  msgid "thumbnail_size_h"
535
  msgstr ""
536
 
537
- #: language/strings.php:108
538
  msgid "thumbnail_crop"
539
  msgstr ""
540
 
541
- #: language/strings.php:109
542
  msgid "medium_size_w"
543
  msgstr ""
544
 
545
- #: language/strings.php:110
546
  msgid "medium_size_h"
547
  msgstr ""
548
 
549
- #: language/strings.php:111
550
  msgid "large_size_w"
551
  msgstr ""
552
 
553
- #: language/strings.php:112
554
  msgid "large_size_h"
555
  msgstr ""
556
 
557
- #: language/strings.php:113
558
  msgid "uploads_use_yearmonth_folders"
559
  msgstr ""
560
 
561
- #: language/strings.php:116
562
  msgid "permalink_structure"
563
  msgstr ""
564
 
565
- #: language/strings.php:117
566
  msgid "category_base"
567
  msgstr ""
568
 
569
- #: language/strings.php:118
570
  msgid "tag_base"
571
  msgstr ""
572
 
6
  #, fuzzy
7
  msgid ""
8
  msgstr ""
9
+ "Project-Id-Version: aryo-activity-log 2.1.1\n"
10
  "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2014-04-27 08:58+0000\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
63
  msgstr ""
64
 
65
  #: classes/class-aal-activity-log-list-table.php:151
66
+ #: classes/class-aal-activity-log-list-table.php:236
67
  msgid "Guest"
68
  msgstr ""
69
 
70
+ #: classes/class-aal-activity-log-list-table.php:247
71
  msgid "All Users"
72
  msgstr ""
73
 
74
+ #: classes/class-aal-activity-log-list-table.php:274
75
  msgid "All Types"
76
  msgstr ""
77
 
78
+ #: classes/class-aal-activity-log-list-table.php:285
79
  msgid "All Time"
80
  msgstr ""
81
 
82
+ #: classes/class-aal-activity-log-list-table.php:286
83
  msgid "Today"
84
  msgstr ""
85
 
86
+ #: classes/class-aal-activity-log-list-table.php:287
87
  msgid "Yesterday"
88
  msgstr ""
89
 
90
+ #: classes/class-aal-activity-log-list-table.php:288
91
  msgid "Week"
92
  msgstr ""
93
 
94
+ #: classes/class-aal-activity-log-list-table.php:289
95
  msgid "Month"
96
  msgstr ""
97
 
98
+ #: classes/class-aal-activity-log-list-table.php:296
99
  msgid "Filter"
100
  msgstr ""
101
 
326
  msgid "Taxonomy"
327
  msgstr ""
328
 
329
+ #: language/strings.php:46
330
+ msgid "Core"
331
+ msgstr ""
332
+
333
+ #: language/strings.php:47
334
+ msgid "WordPress Updated"
335
+ msgstr ""
336
+
337
  #: language/strings.php:48
338
+ msgid "WordPress Auto Updated"
339
+ msgstr ""
340
+
341
+ #: language/strings.php:51
342
+ msgid "Comments"
343
+ msgstr ""
344
+
345
+ #: language/strings.php:52
346
+ msgid "pending"
347
+ msgstr ""
348
+
349
+ #: language/strings.php:53
350
+ msgid "approved"
351
+ msgstr ""
352
+
353
+ #: language/strings.php:54
354
+ msgid "unapproved"
355
+ msgstr ""
356
+
357
+ #: language/strings.php:55
358
+ msgid "trashed"
359
+ msgstr ""
360
+
361
+ #: language/strings.php:56
362
+ msgid "untrashed"
363
+ msgstr ""
364
+
365
+ #: language/strings.php:57
366
+ msgid "spammed"
367
+ msgstr ""
368
+
369
+ #: language/strings.php:58
370
+ msgid "unspammed"
371
+ msgstr ""
372
+
373
+ #: language/strings.php:63
374
  msgid "blogname"
375
  msgstr ""
376
 
377
+ #: language/strings.php:64
378
  msgid "blogdescription"
379
  msgstr ""
380
 
381
+ #: language/strings.php:65
382
  msgid "siteurl"
383
  msgstr ""
384
 
385
+ #: language/strings.php:66
386
  msgid "home"
387
  msgstr ""
388
 
389
+ #: language/strings.php:67
390
  msgid "admin_email"
391
  msgstr ""
392
 
393
+ #: language/strings.php:68
394
  msgid "users_can_register"
395
  msgstr ""
396
 
397
+ #: language/strings.php:69
398
  msgid "default_role"
399
  msgstr ""
400
 
401
+ #: language/strings.php:70
402
  msgid "timezone_string"
403
  msgstr ""
404
 
405
+ #: language/strings.php:71
406
  msgid "date_format"
407
  msgstr ""
408
 
409
+ #: language/strings.php:72
410
  msgid "time_format"
411
  msgstr ""
412
 
413
+ #: language/strings.php:73
414
  msgid "start_of_week"
415
  msgstr ""
416
 
417
+ #: language/strings.php:76
418
  msgid "use_smilies"
419
  msgstr ""
420
 
421
+ #: language/strings.php:77
422
  msgid "use_balanceTags"
423
  msgstr ""
424
 
425
+ #: language/strings.php:78
426
  msgid "default_category"
427
  msgstr ""
428
 
429
+ #: language/strings.php:79
430
  msgid "default_post_format"
431
  msgstr ""
432
 
433
+ #: language/strings.php:80
434
  msgid "mailserver_url"
435
  msgstr ""
436
 
437
+ #: language/strings.php:81
438
  msgid "mailserver_login"
439
  msgstr ""
440
 
441
+ #: language/strings.php:82
442
  msgid "mailserver_pass"
443
  msgstr ""
444
 
445
+ #: language/strings.php:83
446
  msgid "default_email_category"
447
  msgstr ""
448
 
449
+ #: language/strings.php:84
450
  msgid "ping_sites"
451
  msgstr ""
452
 
453
+ #: language/strings.php:87
454
  msgid "show_on_front"
455
  msgstr ""
456
 
457
+ #: language/strings.php:88
458
  msgid "page_on_front"
459
  msgstr ""
460
 
461
+ #: language/strings.php:89
462
  msgid "page_for_posts"
463
  msgstr ""
464
 
465
+ #: language/strings.php:90
466
  msgid "posts_per_page"
467
  msgstr ""
468
 
469
+ #: language/strings.php:91
470
  msgid "posts_per_rss"
471
  msgstr ""
472
 
473
+ #: language/strings.php:92
474
  msgid "rss_use_excerpt"
475
  msgstr ""
476
 
477
+ #: language/strings.php:93
478
  msgid "blog_public"
479
  msgstr ""
480
 
481
+ #: language/strings.php:96
482
  msgid "default_pingback_flag"
483
  msgstr ""
484
 
485
+ #: language/strings.php:97
486
  msgid "default_ping_status"
487
  msgstr ""
488
 
489
+ #: language/strings.php:98
490
  msgid "default_comment_status"
491
  msgstr ""
492
 
493
+ #: language/strings.php:99
494
  msgid "require_name_email"
495
  msgstr ""
496
 
497
+ #: language/strings.php:100
498
  msgid "comment_registration"
499
  msgstr ""
500
 
501
+ #: language/strings.php:101
502
  msgid "close_comments_for_old_posts"
503
  msgstr ""
504
 
505
+ #: language/strings.php:102
506
  msgid "close_comments_days_old"
507
  msgstr ""
508
 
509
+ #: language/strings.php:103
510
  msgid "thread_comments"
511
  msgstr ""
512
 
513
+ #: language/strings.php:104
514
  msgid "thread_comments_depth"
515
  msgstr ""
516
 
517
+ #: language/strings.php:105
518
  msgid "page_comments"
519
  msgstr ""
520
 
521
+ #: language/strings.php:106
522
  msgid "comments_per_page"
523
  msgstr ""
524
 
525
+ #: language/strings.php:107
526
  msgid "default_comments_page"
527
  msgstr ""
528
 
529
+ #: language/strings.php:108
530
  msgid "comment_order"
531
  msgstr ""
532
 
533
+ #: language/strings.php:109
534
  msgid "comments_notify"
535
  msgstr ""
536
 
537
+ #: language/strings.php:110
538
  msgid "moderation_notify"
539
  msgstr ""
540
 
541
+ #: language/strings.php:111
542
  msgid "comment_moderation"
543
  msgstr ""
544
 
545
+ #: language/strings.php:112
546
  msgid "comment_whitelist"
547
  msgstr ""
548
 
549
+ #: language/strings.php:113
550
  msgid "comment_max_links"
551
  msgstr ""
552
 
553
+ #: language/strings.php:114
554
  msgid "moderation_keys"
555
  msgstr ""
556
 
557
+ #: language/strings.php:115
558
  msgid "blacklist_keys"
559
  msgstr ""
560
 
561
+ #: language/strings.php:116
562
  msgid "show_avatars"
563
  msgstr ""
564
 
565
+ #: language/strings.php:117
566
  msgid "avatar_rating"
567
  msgstr ""
568
 
569
+ #: language/strings.php:118
570
  msgid "avatar_default"
571
  msgstr ""
572
 
573
+ #: language/strings.php:121
574
  msgid "thumbnail_size_w"
575
  msgstr ""
576
 
577
+ #: language/strings.php:122
578
  msgid "thumbnail_size_h"
579
  msgstr ""
580
 
581
+ #: language/strings.php:123
582
  msgid "thumbnail_crop"
583
  msgstr ""
584
 
585
+ #: language/strings.php:124
586
  msgid "medium_size_w"
587
  msgstr ""
588
 
589
+ #: language/strings.php:125
590
  msgid "medium_size_h"
591
  msgstr ""
592
 
593
+ #: language/strings.php:126
594
  msgid "large_size_w"
595
  msgstr ""
596
 
597
+ #: language/strings.php:127
598
  msgid "large_size_h"
599
  msgstr ""
600
 
601
+ #: language/strings.php:128
602
  msgid "uploads_use_yearmonth_folders"
603
  msgstr ""
604
 
605
+ #: language/strings.php:131
606
  msgid "permalink_structure"
607
  msgstr ""
608
 
609
+ #: language/strings.php:132
610
  msgid "category_base"
611
  msgstr ""
612
 
613
+ #: language/strings.php:133
614
  msgid "tag_base"
615
  msgstr ""
616
 
language/strings.php CHANGED
@@ -42,6 +42,21 @@ __( 'Menu', 'aryo-aal' );
42
  // Taxonomy
43
  __( 'Taxonomy', 'aryo-aal' );
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
 
47
  // Translate Options?
42
  // Taxonomy
43
  __( 'Taxonomy', 'aryo-aal' );
44
 
45
+ // Core
46
+ __( 'Core', 'aryo-aal' );
47
+ __( 'WordPress Updated', 'aryo-aal' );
48
+ __( 'WordPress Auto Updated', 'aryo-aal' );
49
+
50
+ // Comments
51
+ __( 'Comments', 'aryo-aal' );
52
+ __( 'pending', 'aryo-aal' );
53
+ __( 'approved', 'aryo-aal' );
54
+ __( 'unapproved', 'aryo-aal' );
55
+ __( 'trashed', 'aryo-aal' );
56
+ __( 'untrashed', 'aryo-aal' );
57
+ __( 'spammed', 'aryo-aal' );
58
+ __( 'unspammed', 'aryo-aal' );
59
+
60
 
61
 
62
  // Translate Options?
notifications/abstract-class-aal-notification-base.php CHANGED
@@ -122,7 +122,7 @@ abstract class AAL_Notification_Base {
122
  break;
123
  }
124
 
125
- $message .= sprintf( "<strong>%s</strong> - %s<br>\n", $detail_title, $detail_val );
126
  }
127
 
128
  return $message;
122
  break;
123
  }
124
 
125
+ $message .= sprintf( "<strong>%s</strong> - %s\n", $detail_title, $detail_val );
126
  }
127
 
128
  return $message;
notifications/class-aal-notification-email.php CHANGED
@@ -47,7 +47,7 @@ class AAL_Notification_Email extends AAL_Notification_Base {
47
  wp_mail(
48
  $to_email,
49
  __( 'New notification from Activity Log', 'aryo-aal' ),
50
- $email_contents,
51
  array(
52
  "From: Activity Log @ $site_name <$from_email>"
53
  )
47
  wp_mail(
48
  $to_email,
49
  __( 'New notification from Activity Log', 'aryo-aal' ),
50
+ nl2br( $email_contents ),
51
  array(
52
  "From: Activity Log @ $site_name <$from_email>"
53
  )
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: KingYes, ariel.k, maor
3
  Tags: access, administration, activity, community, event, monitor, multisite, multi-users, log, logger, audit log, login, network, stats, security, tracking, madeinisrael, woocommerce
4
  Requires at least: 3.5
5
  Tested up to: 3.9
6
- Stable tag: 2.1.0
7
  License: GPLv2 or later
8
 
9
  Get aware of any activities that are taking place on your dashboard! Imagine it like a black-box for your WordPress site.
@@ -23,6 +23,7 @@ If you have tens of users or more, you really can’t know who did it. This plug
23
  * <strong>Tags</strong> - Created, Edited, Deleted.
24
  * <strong>Categories</strong> - Created, Edited, Deleted.
25
  * <strong>Taxonomies</strong> - Created, Edited, Deleted.
 
26
  * <strong>Media</strong> - Uploaded, Edited, Deleted.
27
  * <strong>Users</strong> - Login, Logout, Login has failed, Update profile, Registered and Deleted.
28
  * <strong>Plugins</strong> - Activated, Deactivated, Changed.
@@ -32,12 +33,13 @@ If you have tens of users or more, you really can’t know who did it. This plug
32
  * <strong>Setting</strong> - General, Writing, Reading, Discussion, Media, Permalinks.
33
  * <strong>Options</strong> - Can be extend by east filter.
34
  * <strong>WooCommerce</strong> - Few options updated (will be more soon)
 
35
  * and much more..
36
 
37
  <h4>What people are saying</h4>
38
  * <em>“Thanks to this step, we’ve discovered that our site was undergoing a brute force attack”</em> - [artdriver.com](http://www.artdriver.com/wordpress-site-hacked-solution-time/)
39
  * <em>“Optimized code - The plugin itself is blazing fast and leaves almost no footprint on the server.”</em> - [freshtechtips.com](http://www.freshtechtips.com/2014/01/best-audit-trail-plugins-for-wordpress.html)
40
- * <em>“The plugin successful for activity log for wordpress.”</em> - [wp-tricks.co.il](http://www.wp-tricks.co.il/2013/08/%D7%99%D7%95%D7%9E%D7%9F-%D7%A4%D7%A2%D7%99%D7%9C%D7%95%D7%AA-%D7%9C%D7%95%D7%95%D7%A8%D7%93%D7%A4%D7%A8%D7%A1-aryo-activity-log/)
41
  * <em>“This is a pretty simple yet quite effective plugin for keeping track of what your admins and users do on your sites.”</em> - [shadowdragonunlimited.com](http://shadowdragonunlimited.com/plugin-of-the-week-9302013-aryo-activity-log/plugin-of-the-week/)
42
  * Thanks
43
 
@@ -81,6 +83,10 @@ Would you like to like to contribute to Activity Log? You are more than welcome
81
 
82
  == Changelog ==
83
 
 
 
 
 
84
  = 2.1.0 =
85
  * New! Personally-tailored notifications that can be triggered by various types of events, users and action type (currently only email notifications are supported)
86
  * Bug fixes, stability improvements
3
  Tags: access, administration, activity, community, event, monitor, multisite, multi-users, log, logger, audit log, login, network, stats, security, tracking, madeinisrael, woocommerce
4
  Requires at least: 3.5
5
  Tested up to: 3.9
6
+ Stable tag: 2.1.1
7
  License: GPLv2 or later
8
 
9
  Get aware of any activities that are taking place on your dashboard! Imagine it like a black-box for your WordPress site.
23
  * <strong>Tags</strong> - Created, Edited, Deleted.
24
  * <strong>Categories</strong> - Created, Edited, Deleted.
25
  * <strong>Taxonomies</strong> - Created, Edited, Deleted.
26
+ * <strong>Comments</strong> - Created, Approved, Unproved, Trashed, Untrashed, Spammed, Unspammed, Deleted.
27
  * <strong>Media</strong> - Uploaded, Edited, Deleted.
28
  * <strong>Users</strong> - Login, Logout, Login has failed, Update profile, Registered and Deleted.
29
  * <strong>Plugins</strong> - Activated, Deactivated, Changed.
33
  * <strong>Setting</strong> - General, Writing, Reading, Discussion, Media, Permalinks.
34
  * <strong>Options</strong> - Can be extend by east filter.
35
  * <strong>WooCommerce</strong> - Few options updated (will be more soon)
36
+ * <strong>WordPress</strong> - Core Updates.
37
  * and much more..
38
 
39
  <h4>What people are saying</h4>
40
  * <em>“Thanks to this step, we’ve discovered that our site was undergoing a brute force attack”</em> - [artdriver.com](http://www.artdriver.com/wordpress-site-hacked-solution-time/)
41
  * <em>“Optimized code - The plugin itself is blazing fast and leaves almost no footprint on the server.”</em> - [freshtechtips.com](http://www.freshtechtips.com/2014/01/best-audit-trail-plugins-for-wordpress.html)
42
+ * <em>“The plugin successful for activity log for WordPress.”</em> - [wp-tricks.co.il](http://www.wp-tricks.co.il/2013/08/%D7%99%D7%95%D7%9E%D7%9F-%D7%A4%D7%A2%D7%99%D7%9C%D7%95%D7%AA-%D7%9C%D7%95%D7%95%D7%A8%D7%93%D7%A4%D7%A8%D7%A1-aryo-activity-log/)
43
  * <em>“This is a pretty simple yet quite effective plugin for keeping track of what your admins and users do on your sites.”</em> - [shadowdragonunlimited.com](http://shadowdragonunlimited.com/plugin-of-the-week-9302013-aryo-activity-log/plugin-of-the-week/)
44
  * Thanks
45
 
83
 
84
  == Changelog ==
85
 
86
+ = 2.1.1 =
87
+ * New! Track about WordPress core update (manual or auto-updated) ([#41](https://github.com/KingYes/wordpress-aryo-activity-log/issues/41))
88
+ * New! Track post comments (created, approved, unproved, trashed, untrashed, spammed, unspammed, deleted) ([#42](https://github.com/KingYes/wordpress-aryo-activity-log/issues/42))
89
+
90
  = 2.1.0 =
91
  * New! Personally-tailored notifications that can be triggered by various types of events, users and action type (currently only email notifications are supported)
92
  * Bug fixes, stability improvements