Version Description
(May 2018) =
- Fix for some REST API Routes not working, for example when using WPCF7. Should fix https://wordpress.org/support/topic/errorexception-with-wpcf7/ and similar.
Download this release
Release Info
Developer | eskapism |
Plugin | Simple History |
Version | 2.22.1 |
Comparing to | |
See all releases |
Code changes from version 2.22 to 2.22.1
- index.php +2 -2
- loggers/Plugin_Redirection.php +7 -0
- readme.txt +5 -1
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.22
|
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.22' );
|
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.22.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.22.1' );
|
51 |
}
|
52 |
|
53 |
if ( ! defined( 'SIMPLE_HISTORY_PATH' ) ) {
|
loggers/Plugin_Redirection.php
CHANGED
@@ -99,6 +99,13 @@ if ( ! class_exists( 'Plugin_Redirection' ) ) {
|
|
99 |
public function on_rest_request_before_callbacks( $response, $handler, $request ) {
|
100 |
// API route callback object, for example "Redirection_Api_Redirect" Object.
|
101 |
$route_callback_object = isset( $handler['callback'][0] ) ? $handler['callback'][0] : false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
$route_callback_object_class = get_class( $route_callback_object );
|
103 |
|
104 |
// Method name to call on callback class, for example "route_bulk".
|
99 |
public function on_rest_request_before_callbacks( $response, $handler, $request ) {
|
100 |
// API route callback object, for example "Redirection_Api_Redirect" Object.
|
101 |
$route_callback_object = isset( $handler['callback'][0] ) ? $handler['callback'][0] : false;
|
102 |
+
|
103 |
+
// In the case of redirection $route_callback_object must be a class
|
104 |
+
// so bail if it is not.
|
105 |
+
if ( gettype( $route_callback_object ) !== 'object' ) {
|
106 |
+
return $response;
|
107 |
+
}
|
108 |
+
|
109 |
$route_callback_object_class = get_class( $route_callback_object );
|
110 |
|
111 |
// Method name to call on callback class, for example "route_bulk".
|
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.22
|
9 |
|
10 |
View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
|
11 |
|
@@ -163,6 +163,10 @@ A simple way to see any uncommon activity, for example an increased number of lo
|
|
163 |
|
164 |
## Changelog
|
165 |
|
|
|
|
|
|
|
|
|
166 |
= 2.22 (May 2018) =
|
167 |
|
168 |
- IP addresses are now anonymized by default. This is mainly done because of the [General Data Protection Regulation](https://en.wikipedia.org/wiki/General_Data_Protection_Regulation) (GDPR)
|
5 |
Requires at least: 4.5.1
|
6 |
Tested up to: 4.9
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 2.22.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 |
|
163 |
|
164 |
## Changelog
|
165 |
|
166 |
+
= 2.22.1 (May 2018) =
|
167 |
+
|
168 |
+
- Fix for some REST API Routes not working, for example when using WPCF7. Should fix https://wordpress.org/support/topic/errorexception-with-wpcf7/ and similar.
|
169 |
+
|
170 |
= 2.22 (May 2018) =
|
171 |
|
172 |
- IP addresses are now anonymized by default. This is mainly done because of the [General Data Protection Regulation](https://en.wikipedia.org/wiki/General_Data_Protection_Regulation) (GDPR)
|