Version Description
(April 2021) =
- Fixed: Quick diff table had to wrong sizes of the table cells. (#246)
Download this release
Release Info
Developer | eskapism |
Plugin | Simple History |
Version | 2.42.0 |
Comparing to | |
See all releases |
Code changes from version 2.41.2 to 2.42.0
- css/styles.css +4 -0
- index.php +2 -2
- loggers/SimpleUserLogger.php +14 -16
- readme.txt +6 -2
css/styles.css
CHANGED
@@ -972,3 +972,7 @@ Modal window with detailss
|
|
972 |
color: rgb(75, 75, 75);
|
973 |
font-family: "Open Sans", sans-serif;
|
974 |
}
|
|
|
|
|
|
|
|
972 |
color: rgb(75, 75, 75);
|
973 |
font-family: "Open Sans", sans-serif;
|
974 |
}
|
975 |
+
|
976 |
+
.SimpleHistory__diff.SimpleHistory__diff tbody tr td:nth-child(2) {
|
977 |
+
width: auto;
|
978 |
+
}
|
index.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Text Domain: simple-history
|
7 |
* Domain Path: /languages
|
8 |
* Description: Plugin that logs various things that occur in WordPress and then presents those events in a very nice GUI.
|
9 |
-
* Version: 2.
|
10 |
* Author: Pär Thernström
|
11 |
* Author URI: http://simple-history.com/
|
12 |
* License: GPL2
|
@@ -45,7 +45,7 @@ if ($ok_php_version && $ok_wp_version) {
|
|
45 |
* @TODO: make activation multi site aware, as in https://github.com/scribu/wp-proper-network-activation
|
46 |
* register_activation_hook( trailingslashit(WP_PLUGIN_DIR) . trailingslashit( plugin_basename(__DIR__) ) . "index.php" , array("SimpleHistory", "on_plugin_activate" ) );
|
47 |
*/
|
48 |
-
define('SIMPLE_HISTORY_VERSION', '2.
|
49 |
define('SIMPLE_HISTORY_PATH', plugin_dir_path(__FILE__));
|
50 |
define('SIMPLE_HISTORY_BASENAME', plugin_basename(__FILE__));
|
51 |
define('SIMPLE_HISTORY_DIR_URL', plugin_dir_url(__FILE__));
|
6 |
* Text Domain: simple-history
|
7 |
* Domain Path: /languages
|
8 |
* Description: Plugin that logs various things that occur in WordPress and then presents those events in a very nice GUI.
|
9 |
+
* Version: 2.42.0
|
10 |
* Author: Pär Thernström
|
11 |
* Author URI: http://simple-history.com/
|
12 |
* License: GPL2
|
45 |
* @TODO: make activation multi site aware, as in https://github.com/scribu/wp-proper-network-activation
|
46 |
* register_activation_hook( trailingslashit(WP_PLUGIN_DIR) . trailingslashit( plugin_basename(__DIR__) ) . "index.php" , array("SimpleHistory", "on_plugin_activate" ) );
|
47 |
*/
|
48 |
+
define('SIMPLE_HISTORY_VERSION', '2.42.0');
|
49 |
define('SIMPLE_HISTORY_PATH', plugin_dir_path(__FILE__));
|
50 |
define('SIMPLE_HISTORY_BASENAME', plugin_basename(__FILE__));
|
51 |
define('SIMPLE_HISTORY_DIR_URL', plugin_dir_url(__FILE__));
|
loggers/SimpleUserLogger.php
CHANGED
@@ -136,7 +136,6 @@ class SimpleUserLogger extends SimpleLogger
|
|
136 |
|
137 |
// User reaches reset password (from link or only from user created link)
|
138 |
add_action('validate_password_reset', array( $this, 'onValidatePasswordReset' ), 10, 2);
|
139 |
-
|
140 |
add_action('retrieve_password_message', array( $this, 'onRetrievePasswordMessage' ), 10, 4);
|
141 |
|
142 |
add_filter('insert_user_meta', array( $this, 'onInsertUserMeta' ), 10, 3);
|
@@ -304,26 +303,25 @@ class SimpleUserLogger extends SimpleLogger
|
|
304 |
}
|
305 |
|
306 |
/**
|
|
|
|
|
|
|
|
|
307 |
*
|
308 |
-
*
|
|
|
309 |
*/
|
310 |
public function onRetrievePasswordMessage($message, $key, $user_login, $user_data = null)
|
311 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
312 |
|
313 |
-
|
314 |
-
$context = array(
|
315 |
-
'_initiator' => SimpleLoggerLogInitiators::WEB_USER,
|
316 |
-
'message' => $message,
|
317 |
-
'key' => $key,
|
318 |
-
'user_login' => $user_login,
|
319 |
-
);
|
320 |
-
|
321 |
-
if (is_a($user_data, 'WP_User')) {
|
322 |
-
$context['user_email'] = $user_data->user_email;
|
323 |
-
}
|
324 |
-
|
325 |
-
$this->noticeMessage('user_requested_password_reset_link', $context);
|
326 |
-
}
|
327 |
|
328 |
return $message;
|
329 |
}
|
136 |
|
137 |
// User reaches reset password (from link or only from user created link)
|
138 |
add_action('validate_password_reset', array( $this, 'onValidatePasswordReset' ), 10, 2);
|
|
|
139 |
add_action('retrieve_password_message', array( $this, 'onRetrievePasswordMessage' ), 10, 4);
|
140 |
|
141 |
add_filter('insert_user_meta', array( $this, 'onInsertUserMeta' ), 10, 3);
|
303 |
}
|
304 |
|
305 |
/**
|
306 |
+
* Fired from hook "retrieve_password_message" in "wp-login.php".
|
307 |
+
* Hook filters the message body of the password reset mail.
|
308 |
+
*
|
309 |
+
* If this hook is fired then WP has checked for valid username etc already.
|
310 |
*
|
311 |
+
* This hook is not fired when using for example WooCommerce because it has it's own reset password system.
|
312 |
+
* Maybe get_password_reset_key() can be used instead?
|
313 |
*/
|
314 |
public function onRetrievePasswordMessage($message, $key, $user_login, $user_data = null)
|
315 |
{
|
316 |
+
$context = array(
|
317 |
+
'_initiator' => SimpleLoggerLogInitiators::WEB_USER,
|
318 |
+
'message' => $message,
|
319 |
+
'key' => $key,
|
320 |
+
'user_login' => $user_login,
|
321 |
+
'user_email' => $user_data->user_email
|
322 |
+
);
|
323 |
|
324 |
+
$this->noticeMessage('user_requested_password_reset_link', $context);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
325 |
|
326 |
return $message;
|
327 |
}
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: eskapism
|
|
3 |
Donate link: https://www.paypal.me/eskapism
|
4 |
Tags: history, log, changes, changelog, audit, audit log, event log, user tracking, trail, pages, attachments, users, dashboard, admin, syslog, feed, activity, stream, audit trail, brute-force
|
5 |
Requires at least: 5.2
|
6 |
-
Tested up to: 5.
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.
|
9 |
|
10 |
View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
|
11 |
|
@@ -193,6 +193,10 @@ Events in the log are stored for 60 days by default. Events older than this will
|
|
193 |
|
194 |
== Changelog ==
|
195 |
|
|
|
|
|
|
|
|
|
196 |
= 2.41.2 (March 2021) =
|
197 |
|
198 |
- Fixed: Error when running on PHP version 7.2 or lower.
|
3 |
Donate link: https://www.paypal.me/eskapism
|
4 |
Tags: history, log, changes, changelog, audit, audit log, event log, user tracking, trail, pages, attachments, users, dashboard, admin, syslog, feed, activity, stream, audit trail, brute-force
|
5 |
Requires at least: 5.2
|
6 |
+
Tested up to: 5.7
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.42.0
|
9 |
|
10 |
View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
|
11 |
|
193 |
|
194 |
== Changelog ==
|
195 |
|
196 |
+
= 2.42.0 (April 2021) =
|
197 |
+
|
198 |
+
- Fixed: Quick diff table had to wrong sizes of the table cells. ([#246](https://github.com/bonny/WordPress-Simple-History/issues/246))
|
199 |
+
|
200 |
= 2.41.2 (March 2021) =
|
201 |
|
202 |
- Fixed: Error when running on PHP version 7.2 or lower.
|