Version Description
- Added 'view_all_aryo_activity_log' user capability (topic).
Download this release
Release Info
Developer | KingYes |
Plugin | Activity Log |
Version | 1.0.7 |
Comparing to | |
See all releases |
Code changes from version 1.0.6 to 1.0.7
- README.md +0 -83
- aryo-activity-log.php +1 -1
- classes/class-aal-activity-log-list-table.php +2 -2
- classes/class-aal-admin-ui.php +3 -4
- classes/class-aal-maintenance.php +8 -0
- readme.txt +5 -2
README.md
DELETED
@@ -1,83 +0,0 @@
|
|
1 |
-
[WordPress ARYO Activity Log](http://wordpress.org/plugins/aryo-activity-log/)
|
2 |
-
===============
|
3 |
-
|
4 |
-
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 there for you to see.
|
5 |
-
|
6 |
-
|
7 |
-
We all know that it’s relatively easy to analyze what your visitors are looking for while browsing your site. But there is really no easy way to know what registered users (say, with an Administrator account or even Editors) are doing on the dashboard of your site. How can you know if a post was deleted? or if a plugin was activated/deactivated? or if the active theme was changed?
|
8 |
-
If you have tens of users or more, you really can’t know who did it. This plugin tries to solve this issue by tracking what users do on the dashboard of your WordPress site.
|
9 |
-
|
10 |
-
__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).
|
46 |
-
|
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 |
-
WooCommerce
|
56 |
-
* Few options updated (will be more soon).
|
57 |
-
|
58 |
-
|
59 |
-
__Translators:__
|
60 |
-
|
61 |
-
* German (de_DE) - [Robert Harm](http://www.mapsmarker.com/)
|
62 |
-
* Hebrew (he_IL) - [ARYO Digital](http://www.aryodigital.com/)
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
The plugin does not require any kind of setup. It works out of the box (and that’s why we love it too).
|
67 |
-
|
68 |
-
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.
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
Developed by [Yakir Sitbon](http://www.yakirs.net/) and [Ariel Klikstein](http://www.arielk.net/) and [Maor Chasen](http://maorchasen.com/).
|
73 |
-
|
74 |
-
Brought to you by [ARYO Digital](http://www.aryodigital.com/).
|
75 |
-
|
76 |
-
|
77 |
-
## Screenshots
|
78 |
-
|
79 |
-
Here are some screenshots of this awesome plugin.
|
80 |
-
|
81 |
-
![Main Panel](https://raw.github.com/KingYes/wordpress-aryo-activity-log/master/screenshot-1.jpg)
|
82 |
-
![Settings Page](https://raw.github.com/KingYes/wordpress-aryo-activity-log/master/screenshot-2.jpg)
|
83 |
-
![Settings Page](https://raw.github.com/KingYes/wordpress-aryo-activity-log/master/screenshot-3.jpg)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
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.7
|
8 |
Author URI: http://www.aryodigital.com
|
9 |
License: GPLv2 or later
|
10 |
|
classes/class-aal-activity-log-list-table.php
CHANGED
@@ -20,7 +20,7 @@ class AAL_Activity_Log_List_Table extends WP_List_Table {
|
|
20 |
wp_die( 'No allowed here.' );
|
21 |
|
22 |
foreach ( $this->_roles as $key => $role ) {
|
23 |
-
if ( current_user_can( $key ) ) {
|
24 |
$allow_modules = array_merge( $allow_modules, $role );
|
25 |
}
|
26 |
}
|
@@ -45,7 +45,7 @@ class AAL_Activity_Log_List_Table extends WP_List_Table {
|
|
45 |
}
|
46 |
|
47 |
// TODO: Find better way to Multisite compatibility.
|
48 |
-
if ( is_super_admin() )
|
49 |
$allow_caps = $this->_caps['administrator'];
|
50 |
|
51 |
if ( empty( $allow_caps ) )
|
20 |
wp_die( 'No allowed here.' );
|
21 |
|
22 |
foreach ( $this->_roles as $key => $role ) {
|
23 |
+
if ( current_user_can( $key ) || current_user_can( 'view_all_aryo_activity_log' ) ) {
|
24 |
$allow_modules = array_merge( $allow_modules, $role );
|
25 |
}
|
26 |
}
|
45 |
}
|
46 |
|
47 |
// TODO: Find better way to Multisite compatibility.
|
48 |
+
if ( is_super_admin() || current_user_can( 'view_all_aryo_activity_log' ) )
|
49 |
$allow_caps = $this->_caps['administrator'];
|
50 |
|
51 |
if ( empty( $allow_caps ) )
|
classes/class-aal-admin-ui.php
CHANGED
@@ -5,7 +5,8 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
5 |
class AAL_Admin_Ui {
|
6 |
|
7 |
public function create_admin_menu() {
|
8 |
-
|
|
|
9 |
}
|
10 |
|
11 |
public function activity_log_page_func() {
|
@@ -23,9 +24,8 @@ class AAL_Admin_Ui {
|
|
23 |
</form>
|
24 |
</div>
|
25 |
|
26 |
-
<?php
|
27 |
<style>
|
28 |
-
|
29 |
.aal-pt {
|
30 |
color: white;
|
31 |
padding: 1px 4px;
|
@@ -35,7 +35,6 @@ class AAL_Admin_Ui {
|
|
35 |
background: gray;
|
36 |
font-family: inherit;
|
37 |
}
|
38 |
-
|
39 |
</style>
|
40 |
<?php
|
41 |
}
|
5 |
class AAL_Admin_Ui {
|
6 |
|
7 |
public function create_admin_menu() {
|
8 |
+
$menu_capability = current_user_can( 'view_all_aryo_activity_log' ) ? 'view_all_aryo_activity_log' : 'edit_pages';
|
9 |
+
add_dashboard_page( __( 'Activity Log', 'aryo-aal' ), __( 'Activity Log', 'aryo-aal' ), $menu_capability, 'activity_log_page', array( &$this, 'activity_log_page_func' ) );
|
10 |
}
|
11 |
|
12 |
public function activity_log_page_func() {
|
24 |
</form>
|
25 |
</div>
|
26 |
|
27 |
+
<?php // TODO: move to a separate file. ?>
|
28 |
<style>
|
|
|
29 |
.aal-pt {
|
30 |
color: white;
|
31 |
padding: 1px 4px;
|
35 |
background: gray;
|
36 |
font-family: inherit;
|
37 |
}
|
|
|
38 |
</style>
|
39 |
<?php
|
40 |
}
|
classes/class-aal-maintenance.php
CHANGED
@@ -80,6 +80,10 @@ class AAL_Maintenance {
|
|
80 |
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
|
81 |
dbDelta( $sql );
|
82 |
|
|
|
|
|
|
|
|
|
83 |
update_option( 'activity_log_db_version', '1.0' );
|
84 |
}
|
85 |
|
@@ -88,6 +92,10 @@ class AAL_Maintenance {
|
|
88 |
|
89 |
$wpdb->query( "DROP TABLE IF EXISTS `{$wpdb->prefix}aryo_activity_log`;" );
|
90 |
|
|
|
|
|
|
|
|
|
91 |
delete_option( 'activity_log_db_version' );
|
92 |
}
|
93 |
}
|
80 |
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
|
81 |
dbDelta( $sql );
|
82 |
|
83 |
+
$admin_role = get_role( 'administrator' );
|
84 |
+
if ( ! $admin_role->has_cap( 'view_all_aryo_activity_log' ) )
|
85 |
+
$admin_role->add_cap( 'view_all_aryo_activity_log' );
|
86 |
+
|
87 |
update_option( 'activity_log_db_version', '1.0' );
|
88 |
}
|
89 |
|
92 |
|
93 |
$wpdb->query( "DROP TABLE IF EXISTS `{$wpdb->prefix}aryo_activity_log`;" );
|
94 |
|
95 |
+
$admin_role = get_role( 'administrator' );
|
96 |
+
if ( $admin_role->has_cap( 'view_all_aryo_activity_log' ) )
|
97 |
+
$admin_role->remove_cap( 'view_all_aryo_activity_log' );
|
98 |
+
|
99 |
delete_option( 'activity_log_db_version' );
|
100 |
}
|
101 |
}
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
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, woocommerce
|
4 |
Requires at least: 3.5
|
5 |
-
Tested up to: 3.6.
|
6 |
-
Stable tag: 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.
|
@@ -113,6 +113,9 @@ Would you like to like to cotribute to Activity Log? You are more than welcome t
|
|
113 |
|
114 |
== Changelog ==
|
115 |
|
|
|
|
|
|
|
116 |
= 1.0.6 =
|
117 |
* Added WooCommerce integration (very basic).
|
118 |
* Added Settings link in plugins page.
|
2 |
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, woocommerce
|
4 |
Requires at least: 3.5
|
5 |
+
Tested up to: 3.6.1
|
6 |
+
Stable tag: 1.0.7
|
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.
|
113 |
|
114 |
== Changelog ==
|
115 |
|
116 |
+
= 1.0.7 =
|
117 |
+
* Added 'view_all_aryo_activity_log' user capability ([topic](http://wordpress.org/support/topic/capability-to-access-the-activity-log)).
|
118 |
+
|
119 |
= 1.0.6 =
|
120 |
* Added WooCommerce integration (very basic).
|
121 |
* Added Settings link in plugins page.
|