Simple History - Version 2.1.3

Version Description

(July 2015) =

  • Fixed: Ajax error when loading a log that contained uploaded images.
  • Fixed: Removed some debug log messages.
Download this release

Release Info

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

Code changes from version 2.1.2 to 2.1.3

dropins/SimpleHistoryNewRowsNotifierDropin.js CHANGED
@@ -59,7 +59,6 @@
59
 
60
  // Start interval if prev interval was cleared
61
  if (!intervalID) {
62
- console.log("start setInterval");
63
  intervalID = setInterval(checkForUpdates, simple_history_NewRowsNotifierDropin.interval);
64
  }
65
 
59
 
60
  // Start interval if prev interval was cleared
61
  if (!intervalID) {
 
62
  intervalID = setInterval(checkForUpdates, simple_history_NewRowsNotifierDropin.interval);
63
  }
64
 
inc/SimpleHistory.php CHANGED
@@ -10,7 +10,7 @@ class SimpleHistory {
10
  const NAME = "Simple History";
11
 
12
  // Dont use this any more! Will be removed in future versions. Use global SIMPLE_HISTORY_VERSION instead.
13
- const VERSION = "2.1.2";
14
 
15
  /**
16
  * For singleton
10
  const NAME = "Simple History";
11
 
12
  // Dont use this any more! Will be removed in future versions. Use global SIMPLE_HISTORY_VERSION instead.
13
+ const VERSION = "2.1.3";
14
 
15
  /**
16
  * For singleton
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.1.2
9
  Author: Pär Thernström
10
  Author URI: http://simple-history.com/
11
  License: GPL2
@@ -45,7 +45,7 @@ if ( version_compare( phpversion(), "5.3", ">=") ) {
45
  // register_activation_hook( trailingslashit(WP_PLUGIN_DIR) . trailingslashit( plugin_basename(__DIR__) ) . "index.php" , array("SimpleHistory", "on_plugin_activate" ) );
46
 
47
  if ( ! defined( 'SIMPLE_HISTORY_VERSION' ) ) {
48
- define( 'SIMPLE_HISTORY_VERSION', '2.1.2' );
49
  }
50
 
51
  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.1.3
9
  Author: Pär Thernström
10
  Author URI: http://simple-history.com/
11
  License: GPL2
45
  // register_activation_hook( trailingslashit(WP_PLUGIN_DIR) . trailingslashit( plugin_basename(__DIR__) ) . "index.php" , array("SimpleHistory", "on_plugin_activate" ) );
46
 
47
  if ( ! defined( 'SIMPLE_HISTORY_VERSION' ) ) {
48
+ define( 'SIMPLE_HISTORY_VERSION', '2.1.3' );
49
  }
50
 
51
  if ( ! defined( 'SIMPLE_HISTORY_PATH' ) ) {
js/scripts.js CHANGED
@@ -593,8 +593,6 @@ var simple_history = (function($) {
593
 
594
  manualInitialize: function() {
595
 
596
- console.log("manualInitialize");
597
-
598
  // Don't try to init if our element does not exist
599
  if (!this.$el.length) {
600
  return;
593
 
594
  manualInitialize: function() {
595
 
 
 
596
  // Don't try to init if our element does not exist
597
  if (!this.$el.length) {
598
  return;
loggers/SimpleMediaLogger.php CHANGED
@@ -201,8 +201,8 @@ class SimpleMediaLogger extends SimpleLogger
201
 
202
  // Only output thumb if file exists
203
  // For example images deleted on file system but not in WP cause broken images (rare case, but has happened to me.)
204
- if ( file_exists( $attached_file ) ) {
205
- $context["attachment_thumb"] = sprintf('<div class="SimpleHistoryLogitemThumbnail"><img src="%1$s" alt=""></div>' );
206
  }
207
 
208
  }
201
 
202
  // Only output thumb if file exists
203
  // For example images deleted on file system but not in WP cause broken images (rare case, but has happened to me.)
204
+ if ( file_exists( $attached_file ) && $thumb_src ) {
205
+ $context["attachment_thumb"] = sprintf('<div class="SimpleHistoryLogitemThumbnail"><img src="%1$s" alt=""></div>', $thumb_src[0] );
206
  }
207
 
208
  }
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
5
  Requires at least: 3.6.0
6
  Tested up to: 4.2.2
7
- Stable tag: 2.1.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
 
@@ -57,7 +57,7 @@ See the plugin in action with this short screencast:
57
 
58
  #### API so you can add your own events to Simple History
59
 
60
- If you are a theme or plugin developer and would like to add your own things/events to Simple History you can do that by calling the function `simple_history_add()` like this:
61
 
62
  `
63
  <?php
@@ -117,6 +117,11 @@ initiated by a specific user.
117
 
118
  ## Changelog
119
 
 
 
 
 
 
120
  = 2.1.2 (July 2015) =
121
 
122
  - Changed: By default the log now shows events from the last week, last two weeks or last 30 days, all depending on how many events you have in your log. The previous behavior was to not apply any filtering what so ever during the first load. Anyway: this change makes it possible to load the log very quickly even for very large logs. A large amount of users + keeping the log forver = millions of rows of data. Previosly this could stall the log or make it load almost forever. Now = almost always very fast. I have tried it with over 5.000 users and a million row and yes - zing! - much faster. Fixes https://wordpress.org/support/topic/load-with-pagination-mysql.
4
  Tags: history, log, changes, changelog, audit, trail, pages, attachments, users, cms, dashboard, admin, syslog, feed, activity, stream
5
  Requires at least: 3.6.0
6
  Tested up to: 4.2.2
7
+ Stable tag: 2.1.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
 
57
 
58
  #### API so you can add your own events to Simple History
59
 
60
+ If you are a theme or plugin developer and would like to add your own things/events to Simple History you can do that by using the function `SimpleLogger()` like this:
61
 
62
  `
63
  <?php
117
 
118
  ## Changelog
119
 
120
+ = 2.1.3 (July 2015) =
121
+
122
+ - Fixed: Ajax error when loading a log that contained uploaded images.
123
+ - Fixed: Removed some debug log messages.
124
+
125
  = 2.1.2 (July 2015) =
126
 
127
  - Changed: By default the log now shows events from the last week, last two weeks or last 30 days, all depending on how many events you have in your log. The previous behavior was to not apply any filtering what so ever during the first load. Anyway: this change makes it possible to load the log very quickly even for very large logs. A large amount of users + keeping the log forver = millions of rows of data. Previosly this could stall the log or make it load almost forever. Now = almost always very fast. I have tried it with over 5.000 users and a million row and yes - zing! - much faster. Fixes https://wordpress.org/support/topic/load-with-pagination-mysql.