Version Description
(May 2018) =
- Remove some debug messages that was outputed to the error log. Fixes https://wordpress.org/support/topic/errors-in-php-log-since-v2-23/.
- Fix error beacuse function
ucwords()
does not allow a second argument on PHP versions before 5.4.32. Fixes https://wordpress.org/support/topic/error-message-since-last-update/, https://wordpress.org/support/topic/errors-related-to-php-version/. - Added new function
sh_ucwords()
that works likeucwords()
but it also works on PHP 5.3.
Download this release
Release Info
Developer | eskapism |
Plugin | Simple History |
Version | 2.23.1 |
Comparing to | |
See all releases |
Code changes from version 2.23 to 2.23.1
- composer.json +1 -1
- inc/SimpleHistory.php +18 -1
- index.php +2 -2
- loggers/Plugin_Redirection.php +0 -2
- loggers/class-sh-privacy-logger.php +1 -1
- readme.txt +12 -1
composer.json
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
"require": {
|
14 |
"php": ">=5.3.0"
|
15 |
},
|
16 |
-
"version": "2.
|
17 |
"authors": [
|
18 |
{
|
19 |
"name": "Pär Thernström",
|
13 |
"require": {
|
14 |
"php": ">=5.3.0"
|
15 |
},
|
16 |
+
"version": "2.23.1",
|
17 |
"authors": [
|
18 |
{
|
19 |
"name": "Pär Thernström",
|
inc/SimpleHistory.php
CHANGED
@@ -1100,7 +1100,8 @@ class SimpleHistory {
|
|
1100 |
$logger_snaked_name = substr( $one_logger_name, 6 );
|
1101 |
// "privacy-logger" -> "privacy_logger" -> Privacy_Logger
|
1102 |
$logger_snaked_name = str_replace( '-', '_', $logger_snaked_name );
|
1103 |
-
$logger_snaked_name =
|
|
|
1104 |
if ( class_exists( $logger_snaked_name ) ) {
|
1105 |
$logger_class_name = $logger_snaked_name;
|
1106 |
}
|
@@ -3648,3 +3649,19 @@ function sh_get_callable_name( $callable ) {
|
|
3648 |
return 'unknown';
|
3649 |
}
|
3650 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1100 |
$logger_snaked_name = substr( $one_logger_name, 6 );
|
1101 |
// "privacy-logger" -> "privacy_logger" -> Privacy_Logger
|
1102 |
$logger_snaked_name = str_replace( '-', '_', $logger_snaked_name );
|
1103 |
+
$logger_snaked_name = sh_ucwords( $logger_snaked_name, '_' );
|
1104 |
+
|
1105 |
if ( class_exists( $logger_snaked_name ) ) {
|
1106 |
$logger_class_name = $logger_snaked_name;
|
1107 |
}
|
3649 |
return 'unknown';
|
3650 |
}
|
3651 |
}
|
3652 |
+
|
3653 |
+
/**
|
3654 |
+
* PHP 5.3 compatible version of ucwords with second argument.
|
3655 |
+
* Taken from http://php.net/manual/en/function.ucwords.php#105249.
|
3656 |
+
*
|
3657 |
+
* @param string $str String.
|
3658 |
+
* @param string $separator String.
|
3659 |
+
*
|
3660 |
+
* @return string with words uppercased.
|
3661 |
+
*/
|
3662 |
+
function sh_ucwords( $str, $separator = ' ' ) {
|
3663 |
+
$str = str_replace( $separator, ' ', $str );
|
3664 |
+
$str = ucwords( strtolower( $str ) );
|
3665 |
+
$str = str_replace( ' ', $separator, $str );
|
3666 |
+
return $str;
|
3667 |
+
}
|
index.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Text Domain: simple-history
|
6 |
* Domain Path: /languages
|
7 |
* Description: Plugin that logs various things that occur in WordPress and then presents those events in a very nice GUI.
|
8 |
-
* Version: 2.23
|
9 |
* Author: Pär Thernström
|
10 |
* Author URI: http://simple-history.com/
|
11 |
* License: GPL2
|
@@ -47,7 +47,7 @@ if ( $ok_php_version && $ok_wp_version ) {
|
|
47 |
*/
|
48 |
|
49 |
if ( ! defined( 'SIMPLE_HISTORY_VERSION' ) ) {
|
50 |
-
define( 'SIMPLE_HISTORY_VERSION', '2.23' );
|
51 |
}
|
52 |
|
53 |
if ( ! defined( 'SIMPLE_HISTORY_PATH' ) ) {
|
5 |
* Text Domain: simple-history
|
6 |
* Domain Path: /languages
|
7 |
* Description: Plugin that logs various things that occur in WordPress and then presents those events in a very nice GUI.
|
8 |
+
* Version: 2.23.1
|
9 |
* Author: Pär Thernström
|
10 |
* Author URI: http://simple-history.com/
|
11 |
* License: GPL2
|
47 |
*/
|
48 |
|
49 |
if ( ! defined( 'SIMPLE_HISTORY_VERSION' ) ) {
|
50 |
+
define( 'SIMPLE_HISTORY_VERSION', '2.23.1' );
|
51 |
}
|
52 |
|
53 |
if ( ! defined( 'SIMPLE_HISTORY_PATH' ) ) {
|
loggers/Plugin_Redirection.php
CHANGED
@@ -106,8 +106,6 @@ if ( ! class_exists( 'Plugin_Redirection' ) ) {
|
|
106 |
|
107 |
$callable_name = sh_get_callable_name( $callback );
|
108 |
|
109 |
-
error_log( $callable_name );
|
110 |
-
|
111 |
$ok_redirection_api_callable_names = array(
|
112 |
'Redirection_Api_Redirect::route_bulk',
|
113 |
'Redirection_Api_Redirect::route_create',
|
106 |
|
107 |
$callable_name = sh_get_callable_name( $callback );
|
108 |
|
|
|
|
|
109 |
$ok_redirection_api_callable_names = array(
|
110 |
'Redirection_Api_Redirect::route_bulk',
|
111 |
'Redirection_Api_Redirect::route_create',
|
loggers/class-sh-privacy-logger.php
CHANGED
@@ -156,7 +156,7 @@ class SH_Privacy_Logger extends SimpleLogger {
|
|
156 |
);
|
157 |
}
|
158 |
|
159 |
-
sh_error_log( 'on_user_request_action_confirmed', $user_request );
|
160 |
}
|
161 |
|
162 |
/**
|
156 |
);
|
157 |
}
|
158 |
|
159 |
+
// sh_error_log( 'on_user_request_action_confirmed', $user_request );
|
160 |
}
|
161 |
|
162 |
/**
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: history, log, changes, changelog, audit, trail, pages, attachments, users,
|
|
5 |
Requires at least: 4.5.1
|
6 |
Tested up to: 4.9
|
7 |
Requires PHP: 5.3
|
8 |
-
Stable tag: 2.23
|
9 |
|
10 |
View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
|
11 |
|
@@ -50,6 +50,11 @@ see when a user privacy data export request is added and when this request is ap
|
|
50 |
|
51 |
By default Simple History comes with built in support for the following plugins:
|
52 |
|
|
|
|
|
|
|
|
|
|
|
53 |
**User Switching**<br>
|
54 |
The [User Switching plugin](https://wordpress.org/plugins/user-switching/) allows you to quickly swap between user accounts in WordPress at the click of a button.
|
55 |
Simple History will log each user switch being made.
|
@@ -162,6 +167,12 @@ A simple way to see any uncommon activity, for example an increased number of lo
|
|
162 |
|
163 |
## Changelog
|
164 |
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
= 2.23 (May 2018) =
|
166 |
|
167 |
- Add logging of privacy and GDPR related functions in WordPress. Some of the new [privacy related features in WordPress 4.9.6](https://wordpress.org/news/2018/05/wordpress-4-9-6-privacy-and-maintenance-release/) that are logged:
|
5 |
Requires at least: 4.5.1
|
6 |
Tested up to: 4.9
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 2.23.1
|
9 |
|
10 |
View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
|
11 |
|
50 |
|
51 |
By default Simple History comes with built in support for the following plugins:
|
52 |
|
53 |
+
**Advanced Custom Fields (ACF)**<br>
|
54 |
+
[ACF](https://www.advancedcustomfields.com/) adds fields to your posts and pages.
|
55 |
+
Simple History will log changes made to the field groups and the fields inside field groups. Your will be able to
|
56 |
+
see when both field groups and fields are created and modified.
|
57 |
+
|
58 |
**User Switching**<br>
|
59 |
The [User Switching plugin](https://wordpress.org/plugins/user-switching/) allows you to quickly swap between user accounts in WordPress at the click of a button.
|
60 |
Simple History will log each user switch being made.
|
167 |
|
168 |
## Changelog
|
169 |
|
170 |
+
= 2.23.1 (May 2018) =
|
171 |
+
|
172 |
+
- Remove some debug messages that was outputed to the error log. Fixes https://wordpress.org/support/topic/errors-in-php-log-since-v2-23/.
|
173 |
+
- Fix error beacuse function `ucwords()` does not allow a second argument on PHP versions before 5.4.32. Fixes https://wordpress.org/support/topic/error-message-since-last-update/, https://wordpress.org/support/topic/errors-related-to-php-version/.
|
174 |
+
- Added new function `sh_ucwords()` that works like `ucwords()` but it also works on PHP 5.3.
|
175 |
+
|
176 |
= 2.23 (May 2018) =
|
177 |
|
178 |
- Add logging of privacy and GDPR related functions in WordPress. Some of the new [privacy related features in WordPress 4.9.6](https://wordpress.org/news/2018/05/wordpress-4-9-6-privacy-and-maintenance-release/) that are logged:
|