Version Description
(March 2021) =
- Fixed: Get information for correct IP Address when multiple IP addresses are shown.
Download this release
Release Info
| Developer | eskapism |
| Plugin | |
| Version | 2.41.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.41.0 to 2.41.1
- dropins/SimpleHistoryIpInfoDropin.js +1 -1
- index.php +2 -2
- loggers/SimpleLogger.php +4 -3
- readme.txt +5 -1
dropins/SimpleHistoryIpInfoDropin.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
| 15 |
".SimpleHistoryLogitem__anonUserWithIp__theIp",
|
| 16 |
function (e) {
|
| 17 |
var $elm = $(this);
|
| 18 |
-
var ipAddress = $elm.closest("
|
| 19 |
|
| 20 |
if (!ipAddress) {
|
| 21 |
return;
|
| 15 |
".SimpleHistoryLogitem__anonUserWithIp__theIp",
|
| 16 |
function (e) {
|
| 17 |
var $elm = $(this);
|
| 18 |
+
var ipAddress = $elm.closest("a").data("ipAddress");
|
| 19 |
|
| 20 |
if (!ipAddress) {
|
| 21 |
return;
|
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.41.
|
| 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.41.
|
| 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.41.1
|
| 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.41.1');
|
| 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/SimpleLogger.php
CHANGED
|
@@ -605,7 +605,7 @@ class SimpleLogger
|
|
| 605 |
|
| 606 |
$html .= sprintf(
|
| 607 |
__('IP Address %1$s', 'simple-history'),
|
| 608 |
-
"<a target='_blank' href='{$iplookup_link}' class='SimpleHistoryLogitem__anonUserWithIp__theIp'>" .
|
| 609 |
esc_html($first_ip_address) .
|
| 610 |
'</a>'
|
| 611 |
);
|
|
@@ -619,10 +619,11 @@ class SimpleLogger
|
|
| 619 |
);
|
| 620 |
|
| 621 |
$ip_addresses_html .= sprintf(
|
| 622 |
-
'<a target="_blank" href="%3$s" class="SimpleHistoryLogitem__anonUserWithIp__theIp">%1$s</a>, ',
|
| 623 |
esc_html($ip_address), // 1
|
| 624 |
esc_html($ip_address_header), // 2
|
| 625 |
-
$iplookup_link // 3
|
|
|
|
| 626 |
);
|
| 627 |
}
|
| 628 |
|
| 605 |
|
| 606 |
$html .= sprintf(
|
| 607 |
__('IP Address %1$s', 'simple-history'),
|
| 608 |
+
"<a target='_blank' href='{$iplookup_link}' class='SimpleHistoryLogitem__anonUserWithIp__theIp' data-ip-address='" . esc_attr($first_ip_address) . "'>" .
|
| 609 |
esc_html($first_ip_address) .
|
| 610 |
'</a>'
|
| 611 |
);
|
| 619 |
);
|
| 620 |
|
| 621 |
$ip_addresses_html .= sprintf(
|
| 622 |
+
'<a target="_blank" href="%3$s" class="SimpleHistoryLogitem__anonUserWithIp__theIp" data-ip-address="%4$s">%1$s</a>, ',
|
| 623 |
esc_html($ip_address), // 1
|
| 624 |
esc_html($ip_address_header), // 2
|
| 625 |
+
$iplookup_link, // 3
|
| 626 |
+
esc_attr($ip_address), // 4
|
| 627 |
);
|
| 628 |
}
|
| 629 |
|
readme.txt
CHANGED
|
@@ -5,7 +5,7 @@ Tags: history, log, changes, changelog, audit, audit log, event log, user tracki
|
|
| 5 |
Requires at least: 5.2
|
| 6 |
Tested up to: 5.6
|
| 7 |
Requires PHP: 5.6
|
| 8 |
-
Stable tag: 2.41.
|
| 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.0 (March 2021) =
|
| 197 |
|
| 198 |
- Fixed: Error when visiting settings screen on PHP 8.
|
| 5 |
Requires at least: 5.2
|
| 6 |
Tested up to: 5.6
|
| 7 |
Requires PHP: 5.6
|
| 8 |
+
Stable tag: 2.41.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 |
|
| 193 |
|
| 194 |
== Changelog ==
|
| 195 |
|
| 196 |
+
= 2.41.1 (March 2021) =
|
| 197 |
+
|
| 198 |
+
- Fixed: Get information for correct IP Address when multiple IP addresses are shown.
|
| 199 |
+
|
| 200 |
= 2.41.0 (March 2021) =
|
| 201 |
|
| 202 |
- Fixed: Error when visiting settings screen on PHP 8.
|
