Version Description
- Fix! - PHP < 5.4 compatibility (Topic)
Download this release
Release Info
Developer | KingYes |
Plugin | Activity Log |
Version | 2.5.1 |
Comparing to | |
See all releases |
Code changes from version 2.5.0 to 2.5.1
- aryo-activity-log.php +1 -1
- classes/class-aal-privacy.php +24 -24
- readme.txt +5 -2
aryo-activity-log.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://activitylog.io/?utm_source=wp-plugins&utm_campaign=plugin-ur
|
|
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: Activity Log Team
|
7 |
Author URI: https://activitylog.io/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
|
8 |
-
Version: 2.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: Activity Log Team
|
7 |
Author URI: https://activitylog.io/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
|
8 |
+
Version: 2.5.1
|
9 |
Text Domain: aryo-activity-log
|
10 |
License: GPLv2 or later
|
11 |
|
classes/class-aal-privacy.php
CHANGED
@@ -10,14 +10,14 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
10 |
class AAL_Privacy {
|
11 |
|
12 |
public function __construct() {
|
13 |
-
add_filter( 'wp_privacy_personal_data_exporters',
|
14 |
-
add_action( 'admin_init',
|
15 |
}
|
16 |
|
17 |
public function register_exporter( $exporters ) {
|
18 |
$exporters['activity-log'] = array(
|
19 |
'exporter_friendly_name' => __( 'Activity Log Plugin', 'aryo-activity-log' ),
|
20 |
-
'callback' =>
|
21 |
);
|
22 |
return $exporters;
|
23 |
}
|
@@ -31,10 +31,10 @@ class AAL_Privacy {
|
|
31 |
$user = get_user_by( 'email', $email_address );
|
32 |
|
33 |
if ( ! $user ) {
|
34 |
-
return
|
35 |
-
'data' =>
|
36 |
'done' => true,
|
37 |
-
|
38 |
}
|
39 |
|
40 |
global $wpdb;
|
@@ -55,47 +55,47 @@ class AAL_Privacy {
|
|
55 |
foreach ( $items as $item ) {
|
56 |
$item_id = "activity-log-{$item->histid}";
|
57 |
$created = date( 'Y-m-d H:i:s', $item->hist_time );
|
58 |
-
$data =
|
59 |
-
|
60 |
'name' => __( 'Time', 'aryo-activity-log' ),
|
61 |
'value' => get_date_from_gmt( $created, 'Y/m/d h:i:s A' ),
|
62 |
-
|
63 |
-
|
64 |
'name' => __( 'Action', 'aryo-activity-log' ),
|
65 |
'value' => $this->get_action_label( $item->action ),
|
66 |
-
|
67 |
-
|
68 |
'name' => __( 'Object Type', 'aryo-activity-log' ),
|
69 |
'value' => $item->object_type,
|
70 |
-
|
71 |
-
|
72 |
'name' => __( 'Object Subtype', 'aryo-activity-log' ),
|
73 |
'value' => $item->object_subtype,
|
74 |
-
|
75 |
-
|
76 |
'name' => __( 'Description', 'aryo-activity-log' ),
|
77 |
'value' => $item->object_name,
|
78 |
-
|
79 |
-
|
80 |
'name' => __( 'IP', 'aryo-activity-log' ),
|
81 |
'value' => $item->hist_ip,
|
82 |
-
|
83 |
-
|
84 |
|
85 |
-
$export_items[] =
|
86 |
'group_id' => $group_id,
|
87 |
'group_label' => $group_label,
|
88 |
'item_id' => $item_id,
|
89 |
'data' => $data,
|
90 |
-
|
91 |
} // End foreach().
|
92 |
|
93 |
// Tell core if we have more comments to work on still
|
94 |
$done = $found_rows < $number;
|
95 |
-
return
|
96 |
'data' => $export_items,
|
97 |
'done' => $done,
|
98 |
-
|
99 |
}
|
100 |
|
101 |
public function add_privacy_policy_content() {
|
10 |
class AAL_Privacy {
|
11 |
|
12 |
public function __construct() {
|
13 |
+
add_filter( 'wp_privacy_personal_data_exporters', array( $this, 'register_exporter' ) );
|
14 |
+
add_action( 'admin_init', array( $this, 'add_privacy_policy_content' ) );
|
15 |
}
|
16 |
|
17 |
public function register_exporter( $exporters ) {
|
18 |
$exporters['activity-log'] = array(
|
19 |
'exporter_friendly_name' => __( 'Activity Log Plugin', 'aryo-activity-log' ),
|
20 |
+
'callback' => array( $this, 'wp_exporter' ),
|
21 |
);
|
22 |
return $exporters;
|
23 |
}
|
31 |
$user = get_user_by( 'email', $email_address );
|
32 |
|
33 |
if ( ! $user ) {
|
34 |
+
return array(
|
35 |
+
'data' => array(),
|
36 |
'done' => true,
|
37 |
+
);
|
38 |
}
|
39 |
|
40 |
global $wpdb;
|
55 |
foreach ( $items as $item ) {
|
56 |
$item_id = "activity-log-{$item->histid}";
|
57 |
$created = date( 'Y-m-d H:i:s', $item->hist_time );
|
58 |
+
$data = array(
|
59 |
+
array(
|
60 |
'name' => __( 'Time', 'aryo-activity-log' ),
|
61 |
'value' => get_date_from_gmt( $created, 'Y/m/d h:i:s A' ),
|
62 |
+
),
|
63 |
+
array(
|
64 |
'name' => __( 'Action', 'aryo-activity-log' ),
|
65 |
'value' => $this->get_action_label( $item->action ),
|
66 |
+
),
|
67 |
+
array(
|
68 |
'name' => __( 'Object Type', 'aryo-activity-log' ),
|
69 |
'value' => $item->object_type,
|
70 |
+
),
|
71 |
+
array(
|
72 |
'name' => __( 'Object Subtype', 'aryo-activity-log' ),
|
73 |
'value' => $item->object_subtype,
|
74 |
+
),
|
75 |
+
array(
|
76 |
'name' => __( 'Description', 'aryo-activity-log' ),
|
77 |
'value' => $item->object_name,
|
78 |
+
),
|
79 |
+
array(
|
80 |
'name' => __( 'IP', 'aryo-activity-log' ),
|
81 |
'value' => $item->hist_ip,
|
82 |
+
),
|
83 |
+
);
|
84 |
|
85 |
+
$export_items[] = array(
|
86 |
'group_id' => $group_id,
|
87 |
'group_label' => $group_label,
|
88 |
'item_id' => $item_id,
|
89 |
'data' => $data,
|
90 |
+
);
|
91 |
} // End foreach().
|
92 |
|
93 |
// Tell core if we have more comments to work on still
|
94 |
$done = $found_rows < $number;
|
95 |
+
return array(
|
96 |
'data' => $export_items,
|
97 |
'done' => $done,
|
98 |
+
);
|
99 |
}
|
100 |
|
101 |
public function add_privacy_policy_content() {
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: pojo.me, KingYes, ariel.k, maor
|
|
3 |
Tags: Activity Log, Security Log, User Activity, User Log, Activity, audit log, monitor, security, tracking, woocommerce, bbPress,
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 4.9
|
6 |
-
Stable tag: 2.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.
|
@@ -112,11 +112,14 @@ Would you like to like to contribute to Activity Log? You are more than welcome
|
|
112 |
|
113 |
== Changelog ==
|
114 |
|
|
|
|
|
|
|
115 |
= 2.5.0 =
|
116 |
* New! Added log to Export Personal Data tool for better GDPR Compliance ([Topic](https://wordpress.org/support/topic/activity-log-gdpr-compliance/))
|
117 |
|
118 |
= 2.4.1 =
|
119 |
-
* Fix
|
120 |
|
121 |
= 2.4.0 =
|
122 |
* New! Export your Activity Log data records to CSV ([#70](https://github.com/pojome/activity-log/issues/70))
|
3 |
Tags: Activity Log, Security Log, User Activity, User Log, Activity, audit log, monitor, security, tracking, woocommerce, bbPress,
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 4.9
|
6 |
+
Stable tag: 2.5.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.
|
112 |
|
113 |
== Changelog ==
|
114 |
|
115 |
+
= 2.5.1 =
|
116 |
+
* Fix! - PHP < 5.4 compatibility ([Topic](https://wordpress.org/support/topic/crashed-site-now-wont-activate/))
|
117 |
+
|
118 |
= 2.5.0 =
|
119 |
* New! Added log to Export Personal Data tool for better GDPR Compliance ([Topic](https://wordpress.org/support/topic/activity-log-gdpr-compliance/))
|
120 |
|
121 |
= 2.4.1 =
|
122 |
+
* Fix! - Escape title before saving to database
|
123 |
|
124 |
= 2.4.0 =
|
125 |
* New! Export your Activity Log data records to CSV ([#70](https://github.com/pojome/activity-log/issues/70))
|