Simple History - Version 2.5.3

Version Description

(February 2016) =

  • Fixed: Old entries was not correctly removed. Fixes https://github.com/bonny/WordPress-Simple-History/issues/108.
Download this release

Release Info

Developer eskapism
Plugin Icon 128x128 Simple History
Version 2.5.3
Comparing to
See all releases

Code changes from version 2.5.2 to 2.5.3

Files changed (3) hide show
  1. inc/SimpleHistory.php +2 -3
  2. index.php +2 -2
  3. readme.txt +5 -1
inc/SimpleHistory.php CHANGED
@@ -1938,7 +1938,7 @@ Because Simple History was just recently installed, this feed does not contain m
1938
  }
1939
 
1940
  $days = $this->get_clear_history_interval();
1941
-
1942
  // Never clear log if days = 0
1943
  if ( 0 == $days ) {
1944
  return;
@@ -1951,8 +1951,7 @@ Because Simple History was just recently installed, this feed does not contain m
1951
 
1952
  // Get id of rows to delete
1953
  $sql = $wpdb->prepare(
1954
- "SELECT id FROM %s WHERE DATE_ADD(date, INTERVAL %d DAY) < now()",
1955
- $table_name,
1956
  $days
1957
  );
1958
 
1938
  }
1939
 
1940
  $days = $this->get_clear_history_interval();
1941
+
1942
  // Never clear log if days = 0
1943
  if ( 0 == $days ) {
1944
  return;
1951
 
1952
  // Get id of rows to delete
1953
  $sql = $wpdb->prepare(
1954
+ "SELECT id FROM $table_name WHERE DATE_ADD(date, INTERVAL %d DAY) < now()",
 
1955
  $days
1956
  );
1957
 
index.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://simple-history.com
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.5.2
9
  Author: Pär Thernström
10
  Author URI: http://simple-history.com/
11
  License: GPL2
@@ -42,7 +42,7 @@ if ( version_compare( phpversion(), "5.3", ">=") ) {
42
  // register_activation_hook( trailingslashit(WP_PLUGIN_DIR) . trailingslashit( plugin_basename(__DIR__) ) . "index.php" , array("SimpleHistory", "on_plugin_activate" ) );
43
 
44
  if ( ! defined( 'SIMPLE_HISTORY_VERSION' ) ) {
45
- define( 'SIMPLE_HISTORY_VERSION', '2.5.2' );
46
  }
47
 
48
  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.5.3
9
  Author: Pär Thernström
10
  Author URI: http://simple-history.com/
11
  License: GPL2
42
  // register_activation_hook( trailingslashit(WP_PLUGIN_DIR) . trailingslashit( plugin_basename(__DIR__) ) . "index.php" , array("SimpleHistory", "on_plugin_activate" ) );
43
 
44
  if ( ! defined( 'SIMPLE_HISTORY_VERSION' ) ) {
45
+ define( 'SIMPLE_HISTORY_VERSION', '2.5.3' );
46
  }
47
 
48
  if ( ! defined( 'SIMPLE_HISTORY_PATH' ) ) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://eskapism.se/sida/donate/
4
  Tags: history, log, changes, changelog, audit, trail, pages, attachments, users, cms, dashboard, admin, syslog, feed, activity, stream, audit trail, brute-force
5
  Requires at least: 3.6.0
6
  Tested up to: 4.4
7
- Stable tag: 2.5.2
8
 
9
  View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
10
 
@@ -143,6 +143,10 @@ initiated by a specific user.
143
 
144
  ## Changelog
145
 
 
 
 
 
146
  = 2.5.2 (February 2016) =
147
 
148
  - Added: The GUI log now updates the relative "fuzzy" timestamps in real time. This means that if you keep the log opened, the relative date for each event, for example "2 minutes ago" or "2 hours ago", will always be up to date (hah!). Keep the log opened for 5 minutes and you will see that the event that previously said "2 minutes ago" now says "7 minutes ago". Fixes https://github.com/bonny/WordPress-Simple-History/issues/88 and is implemented using the great [timeago jquery plugin](http://timeago.yarp.com/).
4
  Tags: history, log, changes, changelog, audit, trail, pages, attachments, users, cms, dashboard, admin, syslog, feed, activity, stream, audit trail, brute-force
5
  Requires at least: 3.6.0
6
  Tested up to: 4.4
7
+ Stable tag: 2.5.3
8
 
9
  View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
10
 
143
 
144
  ## Changelog
145
 
146
+ = 2.5.3 (February 2016) =
147
+
148
+ - Fixed: Old entries was not correctly removed. Fixes https://github.com/bonny/WordPress-Simple-History/issues/108.
149
+
150
  = 2.5.2 (February 2016) =
151
 
152
  - Added: The GUI log now updates the relative "fuzzy" timestamps in real time. This means that if you keep the log opened, the relative date for each event, for example "2 minutes ago" or "2 hours ago", will always be up to date (hah!). Keep the log opened for 5 minutes and you will see that the event that previously said "2 minutes ago" now says "7 minutes ago". Fixes https://github.com/bonny/WordPress-Simple-History/issues/88 and is implemented using the great [timeago jquery plugin](http://timeago.yarp.com/).