Activity Log - Version 1.0.4

Version Description

  • Added Taxonomy type (created, updated, deleted).
Download this release

Release Info

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

Code changes from version 1.0.3 to 1.0.4

README.md CHANGED
@@ -11,35 +11,35 @@ __As of this moment, the plugin logs things when:__
11
 
12
 
13
  Users
14
- * A user logs in
15
- * A user logs out
16
- * A login has failed due to incorrect credentials
17
- * A user updates their profile
18
- * A new user account is being registered
19
- * An existing user account is being deleted
20
 
21
  Plugins
22
- * A plugin is being activated
23
- * A plugin is being deactivated
24
- * A plugin is being changed
25
 
26
  Themes
27
- * A theme is being changed (Editor and Customizer)
28
 
29
  Content
30
- * A new post is being created
31
- * A post is being updated
32
- * A post changes status (draft, pending review, publish)
33
- * A post is being deleted
34
 
35
  Media
36
- * An attachment is being uploaded
37
- * An attachment is being edited
38
- * An attachment is being deleted
39
 
40
  Widgets
41
- * A widget is being added to a sidebar
42
- * A widget is being deleted from a sidebar
43
 
44
  Options
45
  * A option is being updated (can be extend by east filter).
@@ -47,6 +47,11 @@ Options
47
  Menu
48
  * A menu is being updated.
49
 
 
 
 
 
 
50
 
51
  __Translators:__
52
 
11
 
12
 
13
  Users
14
+ * A user logs in.
15
+ * A user logs out.
16
+ * A login has failed due to incorrect credentials.
17
+ * A user updates their profile.
18
+ * A new user account is being registered.
19
+ * An existing user account is being deleted.
20
 
21
  Plugins
22
+ * A plugin is being activated.
23
+ * A plugin is being deactivated.
24
+ * A plugin is being changed.
25
 
26
  Themes
27
+ * A theme is being changed (Editor and Customizer).
28
 
29
  Content
30
+ * A new post is being created.
31
+ * A post is being updated.
32
+ * A post changes status (draft, pending review, publish).
33
+ * A post is being deleted.
34
 
35
  Media
36
+ * An attachment is being uploaded.
37
+ * An attachment is being edited.
38
+ * An attachment is being deleted.
39
 
40
  Widgets
41
+ * A widget is being added to a sidebar.
42
+ * A widget is being deleted from a sidebar.
43
 
44
  Options
45
  * A option is being updated (can be extend by east filter).
47
  Menu
48
  * A menu is being updated.
49
 
50
+ Taxonomy
51
+ * An term is being created.
52
+ * An term is being edited.
53
+ * An term is being deleted.
54
+
55
 
56
  __Translators:__
57
 
aryo-activity-log.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: ARYO Activity Log
4
  Plugin URI: http://wordpress.org/plugins/aryo-activity-log/
5
  Description: Get aware of the activities that are taking place on your dashboard! Weather a post was deleted or a plugin was activated, it’s all these for you to see.
6
  Author: Yakir Sitbon, Maor Chasen, Ariel Klikstein
7
- Version: 1.0.3
8
  Author URI: http://www.aryodigital.com
9
  License: GPLv2 or later
10
 
4
  Plugin URI: http://wordpress.org/plugins/aryo-activity-log/
5
  Description: Get aware of the activities that are taking place on your dashboard! Weather a post was deleted or a plugin was activated, it’s all these for you to see.
6
  Author: Yakir Sitbon, Maor Chasen, Ariel Klikstein
7
+ Version: 1.0.4
8
  Author URI: http://www.aryodigital.com
9
  License: GPLv2 or later
10
 
classes/class-aal-activity-log-list-table.php CHANGED
@@ -61,9 +61,9 @@ class AAL_Activity_Log_List_Table extends WP_List_Table {
61
  public function __construct() {
62
  $this->_roles = apply_filters( 'aal_init_roles', array(
63
  // admin
64
- 'manage_options' => array( 'Post', 'User', 'Options', 'Attachment', 'Plugin', 'Widget', 'Theme', 'Menu' ),
65
  // editor
66
- 'edit_pages' => array( 'Post', 'Attachment' ),
67
  ) );
68
 
69
  $this->_caps = array(
@@ -132,13 +132,17 @@ class AAL_Activity_Log_List_Table extends WP_List_Table {
132
  }
133
 
134
  public function column_name( $item ) {
 
 
135
  switch ( $item->object_type ) {
136
  case 'Post' :
137
  $return = '<a href="post.php?post=' . $item->object_id . '&action=edit">' . $item->object_name . '</a>';
138
  break;
139
 
140
- default :
141
- $return = $item->object_name;
 
 
142
  }
143
 
144
  return $return;
61
  public function __construct() {
62
  $this->_roles = apply_filters( 'aal_init_roles', array(
63
  // admin
64
+ 'manage_options' => array( 'Post', 'Taxonomy', 'User', 'Options', 'Attachment', 'Plugin', 'Widget', 'Theme', 'Menu' ),
65
  // editor
66
+ 'edit_pages' => array( 'Post', 'Taxonomy', 'Attachment' ),
67
  ) );
68
 
69
  $this->_caps = array(
132
  }
133
 
134
  public function column_name( $item ) {
135
+ $return = $item->object_name;
136
+
137
  switch ( $item->object_type ) {
138
  case 'Post' :
139
  $return = '<a href="post.php?post=' . $item->object_id . '&action=edit">' . $item->object_name . '</a>';
140
  break;
141
 
142
+ case 'Taxonomy' :
143
+ if ( ! empty( $item->object_id ) )
144
+ $return = sprintf( '<a href="edit-tags.php?action=edit&taxonomy=%s&tag_ID=%d">%s</a>', $item->object_subtype, $item->object_id, $item->object_name );
145
+ break;
146
  }
147
 
148
  return $return;
classes/class-hooks.php CHANGED
@@ -58,6 +58,11 @@ class AAL_Hooks {
58
 
59
  // Menu
60
  add_action( 'wp_update_nav_menu', array( &$this, 'hooks_menu_updated' ) );
 
 
 
 
 
61
  }
62
 
63
  public function admin_init() {
@@ -349,6 +354,32 @@ class AAL_Hooks {
349
  ) );
350
  }
351
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
352
 
353
  public function __construct() {
354
  add_action( 'init', array( &$this, 'init' ) );
58
 
59
  // Menu
60
  add_action( 'wp_update_nav_menu', array( &$this, 'hooks_menu_updated' ) );
61
+
62
+ // Taxonomy
63
+ add_action( 'created_term', array( &$this, 'hooks_created_edited_deleted_term' ), 10, 3 );
64
+ add_action( 'edited_term', array( &$this, 'hooks_created_edited_deleted_term' ), 10, 3 );
65
+ add_action( 'delete_term', array( &$this, 'hooks_created_edited_deleted_term' ), 10, 4 );
66
  }
67
 
68
  public function admin_init() {
354
  ) );
355
  }
356
  }
357
+
358
+ public function hooks_created_edited_deleted_term( $term_id, $tt_id, $taxonomy, $deleted_term = null ) {
359
+ if ( 'delete_term' === current_filter() )
360
+ $term = $deleted_term;
361
+ else
362
+ $term = get_term( $term_id, $taxonomy );
363
+
364
+ if ( $term && ! is_wp_error( $term ) ) {
365
+ if ( 'edited_term' === current_filter() ) {
366
+ $action = 'updated';
367
+ } elseif ( 'delete_term' === current_filter() ) {
368
+ $action = 'deleted';
369
+ $term_id = '';
370
+ } else {
371
+ $action = 'created';
372
+ }
373
+
374
+ aal_insert_log( array(
375
+ 'action' => $action,
376
+ 'object_type' => 'Taxonomy',
377
+ 'object_subtype' => $taxonomy,
378
+ 'object_id' => $term_id,
379
+ 'object_name' => $term->name,
380
+ ) );
381
+ }
382
+ }
383
 
384
  public function __construct() {
385
  add_action( 'init', array( &$this, 'init' ) );
language/aryo-aal-de_DE.mo CHANGED
Binary file
language/aryo-aal-de_DE.po CHANGED
@@ -4,8 +4,8 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: ARYO Activity Log\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/activity-log\n"
7
- "POT-Creation-Date: 2013-05-27 22:28+0200\n"
8
- "PO-Revision-Date: 2013-05-27 22:29+0200\n"
9
  "Last-Translator: Yakir Sitbon <kingyes1@gmail.com>\n"
10
  "Language-Team: Robert Harm <LL@li.org>\n"
11
  "Language: de_DE\n"
@@ -14,49 +14,49 @@ msgstr ""
14
  "Content-Transfer-Encoding: 8bit\n"
15
  "X-Generator: Poedit 1.5.5\n"
16
 
17
- #: ../classes/class-aal-activity-log-list-table.php:78
18
  #, fuzzy
19
  msgid "Type"
20
  msgstr "Typ"
21
 
22
- #: ../classes/class-aal-activity-log-list-table.php:79
23
  #, fuzzy
24
  msgid "Name"
25
  msgstr "Name"
26
 
27
- #: ../classes/class-aal-activity-log-list-table.php:80
28
  #, fuzzy
29
  msgid "Action"
30
  msgstr "Aktion"
31
 
32
- #: ../classes/class-aal-activity-log-list-table.php:81
33
  #, fuzzy
34
  msgid "Date"
35
  msgstr "Datum"
36
 
37
- #: ../classes/class-aal-activity-log-list-table.php:95
38
  #, php-format
39
  msgid "%s ago"
40
  msgstr "vor %s"
41
 
42
- #: ../classes/class-aal-activity-log-list-table.php:116
43
  msgid "by "
44
  msgstr "von"
45
 
46
- #: ../classes/class-aal-activity-log-list-table.php:123
47
- #: ../classes/class-aal-activity-log-list-table.php:168
48
  msgid "Guest"
49
  msgstr "Gast"
50
 
51
- #: ../classes/class-aal-activity-log-list-table.php:179
52
  msgid "All Users"
53
  msgstr "Alle Benutzer"
54
 
55
- #: ../classes/class-aal-activity-log-list-table.php:206
56
  msgid "All Types"
57
  msgstr "Alle Typen"
58
 
59
- #: ../classes/class-aal-activity-log-list-table.php:212
60
  msgid "Filter"
61
  msgstr "Filter"
62
 
@@ -162,5 +162,13 @@ msgstr "Widget"
162
  msgid "Options"
163
  msgstr "Anzeigeoptionen"
164
 
 
 
 
 
 
 
 
 
165
  #~ msgid "was "
166
  #~ msgstr "war"
4
  msgstr ""
5
  "Project-Id-Version: ARYO Activity Log\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/activity-log\n"
7
+ "POT-Creation-Date: 2013-06-18 13:56+0200\n"
8
+ "PO-Revision-Date: 2013-06-18 14:00+0200\n"
9
  "Last-Translator: Yakir Sitbon <kingyes1@gmail.com>\n"
10
  "Language-Team: Robert Harm <LL@li.org>\n"
11
  "Language: de_DE\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
  "X-Generator: Poedit 1.5.5\n"
16
 
17
+ #: ../classes/class-aal-activity-log-list-table.php:82
18
  #, fuzzy
19
  msgid "Type"
20
  msgstr "Typ"
21
 
22
+ #: ../classes/class-aal-activity-log-list-table.php:83
23
  #, fuzzy
24
  msgid "Name"
25
  msgstr "Name"
26
 
27
+ #: ../classes/class-aal-activity-log-list-table.php:84
28
  #, fuzzy
29
  msgid "Action"
30
  msgstr "Aktion"
31
 
32
+ #: ../classes/class-aal-activity-log-list-table.php:85
33
  #, fuzzy
34
  msgid "Date"
35
  msgstr "Datum"
36
 
37
+ #: ../classes/class-aal-activity-log-list-table.php:99
38
  #, php-format
39
  msgid "%s ago"
40
  msgstr "vor %s"
41
 
42
+ #: ../classes/class-aal-activity-log-list-table.php:120
43
  msgid "by "
44
  msgstr "von"
45
 
46
+ #: ../classes/class-aal-activity-log-list-table.php:127
47
+ #: ../classes/class-aal-activity-log-list-table.php:176
48
  msgid "Guest"
49
  msgstr "Gast"
50
 
51
+ #: ../classes/class-aal-activity-log-list-table.php:187
52
  msgid "All Users"
53
  msgstr "Alle Benutzer"
54
 
55
+ #: ../classes/class-aal-activity-log-list-table.php:214
56
  msgid "All Types"
57
  msgstr "Alle Typen"
58
 
59
+ #: ../classes/class-aal-activity-log-list-table.php:220
60
  msgid "Filter"
61
  msgstr "Filter"
62
 
162
  msgid "Options"
163
  msgstr "Anzeigeoptionen"
164
 
165
+ #: ../language/strings.php:31
166
+ msgid "Menu"
167
+ msgstr "Menü"
168
+
169
+ #: ../language/strings.php:34
170
+ msgid "Taxonomy"
171
+ msgstr "Taxonomie"
172
+
173
  #~ msgid "was "
174
  #~ msgstr "war"
language/aryo-aal-he_IL.mo CHANGED
Binary file
language/aryo-aal-he_IL.po CHANGED
@@ -4,8 +4,8 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: ARYO Activity Log\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/activity-log\n"
7
- "POT-Creation-Date: 2013-06-03 00:27+0200\n"
8
- "PO-Revision-Date: 2013-06-03 00:28+0200\n"
9
  "Last-Translator: Yakir Sitbon <kingyes1@gmail.com>\n"
10
  "Language-Team: Yakir Sitbon & Arie Klikstein <aryodigital@gmail.com>\n"
11
  "Language: he_IL\n"
@@ -45,19 +45,19 @@ msgid "by "
45
  msgstr "ע\"י"
46
 
47
  #: ../classes/class-aal-activity-log-list-table.php:127
48
- #: ../classes/class-aal-activity-log-list-table.php:172
49
  msgid "Guest"
50
  msgstr "אורח"
51
 
52
- #: ../classes/class-aal-activity-log-list-table.php:183
53
  msgid "All Users"
54
  msgstr "כל המשתמשים"
55
 
56
- #: ../classes/class-aal-activity-log-list-table.php:210
57
  msgid "All Types"
58
  msgstr "כל הסוגים"
59
 
60
- #: ../classes/class-aal-activity-log-list-table.php:216
61
  msgid "Filter"
62
  msgstr "סינון"
63
 
@@ -165,3 +165,7 @@ msgstr "הגדרות"
165
  #: ../language/strings.php:31
166
  msgid "Menu"
167
  msgstr "תפריט"
 
 
 
 
4
  msgstr ""
5
  "Project-Id-Version: ARYO Activity Log\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/activity-log\n"
7
+ "POT-Creation-Date: 2013-06-18 13:56+0200\n"
8
+ "PO-Revision-Date: 2013-06-18 14:00+0200\n"
9
  "Last-Translator: Yakir Sitbon <kingyes1@gmail.com>\n"
10
  "Language-Team: Yakir Sitbon & Arie Klikstein <aryodigital@gmail.com>\n"
11
  "Language: he_IL\n"
45
  msgstr "ע\"י"
46
 
47
  #: ../classes/class-aal-activity-log-list-table.php:127
48
+ #: ../classes/class-aal-activity-log-list-table.php:176
49
  msgid "Guest"
50
  msgstr "אורח"
51
 
52
+ #: ../classes/class-aal-activity-log-list-table.php:187
53
  msgid "All Users"
54
  msgstr "כל המשתמשים"
55
 
56
+ #: ../classes/class-aal-activity-log-list-table.php:214
57
  msgid "All Types"
58
  msgstr "כל הסוגים"
59
 
60
+ #: ../classes/class-aal-activity-log-list-table.php:220
61
  msgid "Filter"
62
  msgstr "סינון"
63
 
165
  #: ../language/strings.php:31
166
  msgid "Menu"
167
  msgstr "תפריט"
168
+
169
+ #: ../language/strings.php:34
170
+ msgid "Taxonomy"
171
+ msgstr "טקסונומי"
language/aryo-aal.pot CHANGED
@@ -4,8 +4,8 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: ARYO Activity Log\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/activity-log\n"
7
- "POT-Creation-Date: 2013-06-03 00:27+0200\n"
8
- "PO-Revision-Date: 2013-06-03 00:27+0200\n"
9
  "Last-Translator: Yakir Sitbon <kingyes1@gmail.com>\n"
10
  "Language-Team: LANGUAGE <LL@li.org>\n"
11
  "MIME-Version: 1.0\n"
@@ -44,19 +44,19 @@ msgid "by "
44
  msgstr ""
45
 
46
  #: ../classes/class-aal-activity-log-list-table.php:127
47
- #: ../classes/class-aal-activity-log-list-table.php:172
48
  msgid "Guest"
49
  msgstr ""
50
 
51
- #: ../classes/class-aal-activity-log-list-table.php:183
52
  msgid "All Users"
53
  msgstr ""
54
 
55
- #: ../classes/class-aal-activity-log-list-table.php:210
56
  msgid "All Types"
57
  msgstr ""
58
 
59
- #: ../classes/class-aal-activity-log-list-table.php:216
60
  msgid "Filter"
61
  msgstr ""
62
 
@@ -164,3 +164,7 @@ msgstr ""
164
  #: ../language/strings.php:31
165
  msgid "Menu"
166
  msgstr ""
 
 
 
 
4
  msgstr ""
5
  "Project-Id-Version: ARYO Activity Log\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/activity-log\n"
7
+ "POT-Creation-Date: 2013-06-18 13:56+0200\n"
8
+ "PO-Revision-Date: 2013-06-18 13:56+0200\n"
9
  "Last-Translator: Yakir Sitbon <kingyes1@gmail.com>\n"
10
  "Language-Team: LANGUAGE <LL@li.org>\n"
11
  "MIME-Version: 1.0\n"
44
  msgstr ""
45
 
46
  #: ../classes/class-aal-activity-log-list-table.php:127
47
+ #: ../classes/class-aal-activity-log-list-table.php:176
48
  msgid "Guest"
49
  msgstr ""
50
 
51
+ #: ../classes/class-aal-activity-log-list-table.php:187
52
  msgid "All Users"
53
  msgstr ""
54
 
55
+ #: ../classes/class-aal-activity-log-list-table.php:214
56
  msgid "All Types"
57
  msgstr ""
58
 
59
+ #: ../classes/class-aal-activity-log-list-table.php:220
60
  msgid "Filter"
61
  msgstr ""
62
 
164
  #: ../language/strings.php:31
165
  msgid "Menu"
166
  msgstr ""
167
+
168
+ #: ../language/strings.php:34
169
+ msgid "Taxonomy"
170
+ msgstr ""
language/strings.php CHANGED
@@ -28,4 +28,7 @@ __( 'Widget', 'aryo-aal' );
28
  __( 'Options', 'aryo-aal' );
29
 
30
  // Menu
31
- __( 'Menu', 'aryo-aal' );
 
 
 
28
  __( 'Options', 'aryo-aal' );
29
 
30
  // Menu
31
+ __( 'Menu', 'aryo-aal' );
32
+
33
+ // Taxonomy
34
+ __( 'Taxonomy', 'aryo-aal' );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: KingYes, ariel.k, maor
3
  Tags: access, admin, administration, activity, community, event, monitor, multisite, multi-users, log, logging, logger, login, network, stats, security, tracking, user, madeinisrael
4
  Requires at least: 3.5
5
  Tested up to: 3.5.1
6
- Stable tag: 1.0.3
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.
@@ -20,40 +20,40 @@ If you have tens of users or more, you really can’t know who did it. This plug
20
 
21
  Users
22
 
23
- * A user logs in
24
- * A user logs out
25
- * A login has failed due to incorrect credentials
26
- * A user updates their profile
27
- * A new user account is being registerd
28
- * An existing user account is being deleted
29
 
30
  Plugins
31
 
32
- * A plugin is being activated
33
- * A plugin is being deactivated
34
- * A plugin is being changed
35
 
36
  Themes
37
 
38
- * A theme is being changed (Editor and Customizer)
39
 
40
  Content
41
 
42
- * A new post is being created
43
- * A post is being updated
44
- * A post changes status (draft, pending review, publish)
45
- * A post is being deleted
46
 
47
  Media
48
 
49
- * An attachment is being uploaded
50
- * An attachment is being edited
51
- * An attachment is being deleted
52
 
53
  Widgets
54
 
55
- * A widget is being added to a sidebar
56
- * A widget is being deleted from a sidebar
57
 
58
  Options
59
 
@@ -63,6 +63,12 @@ Menu
63
 
64
  * A menu is being updated.
65
 
 
 
 
 
 
 
66
 
67
  <strong>Translators:</strong>
68
 
@@ -103,6 +109,9 @@ Would you like to like to cotribute to Activity Log? You are more than welcome t
103
 
104
  == Changelog ==
105
 
 
 
 
106
  = 1.0.3 =
107
  * Added Multisite compatibility.
108
  * Added Options hooks (limit list, you can extend by simple filter).
3
  Tags: access, admin, administration, activity, community, event, monitor, multisite, multi-users, log, logging, logger, login, network, stats, security, tracking, user, madeinisrael
4
  Requires at least: 3.5
5
  Tested up to: 3.5.1
6
+ Stable tag: 1.0.4
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.
20
 
21
  Users
22
 
23
+ * A user logs in.
24
+ * A user logs out.
25
+ * A login has failed due to incorrect credentials.
26
+ * A user updates their profile.
27
+ * A new user account is being registered.
28
+ * An existing user account is being deleted.
29
 
30
  Plugins
31
 
32
+ * A plugin is being activated.
33
+ * A plugin is being deactivated.
34
+ * A plugin is being changed.
35
 
36
  Themes
37
 
38
+ * A theme is being changed (Editor and Customizer).
39
 
40
  Content
41
 
42
+ * A new post is being created.
43
+ * A post is being updated.
44
+ * A post changes status (draft, pending review, publish).
45
+ * A post is being deleted.
46
 
47
  Media
48
 
49
+ * An attachment is being uploaded.
50
+ * An attachment is being edited.
51
+ * An attachment is being deleted.
52
 
53
  Widgets
54
 
55
+ * A widget is being added to a sidebar.
56
+ * A widget is being deleted from a sidebar.
57
 
58
  Options
59
 
63
 
64
  * A menu is being updated.
65
 
66
+ Taxonomy
67
+
68
+ * An term is being created.
69
+ * An term is being edited.
70
+ * An term is being deleted.
71
+
72
 
73
  <strong>Translators:</strong>
74
 
109
 
110
  == Changelog ==
111
 
112
+ = 1.0.4 =
113
+ * Added Taxonomy type (created, updated, deleted).
114
+
115
  = 1.0.3 =
116
  * Added Multisite compatibility.
117
  * Added Options hooks (limit list, you can extend by simple filter).