Version Description
(September 2015) =
- Fixed: On new installs the database tables was not created correctly and new events could not be logged.
Download this release
Release Info
| Developer | eskapism |
| Plugin | |
| Version | 2.2.3 |
| Comparing to | |
| See all releases | |
Code changes from version 2.2.2 to 2.2.3
- inc/SimpleHistory.php +6 -6
- index.php +2 -2
- readme.txt +5 -1
inc/SimpleHistory.php
CHANGED
|
@@ -1093,7 +1093,7 @@ class SimpleHistory {
|
|
| 1093 |
$table_name = $wpdb->prefix . SimpleHistory::DBTABLE;
|
| 1094 |
$table_name_contexts = $wpdb->prefix . SimpleHistory::DBTABLE_CONTEXTS;
|
| 1095 |
$first_install = false;
|
| 1096 |
-
|
| 1097 |
// If no db_version is set then this
|
| 1098 |
// is a version of Simple History < 0.4
|
| 1099 |
// or it's a first install
|
|
@@ -1121,7 +1121,7 @@ class SimpleHistory {
|
|
| 1121 |
|
| 1122 |
// We change the varchar size to add one num just to force update of encoding. dbdelta didn't see it otherwise.
|
| 1123 |
// This table is missing action_description, but we add that later on
|
| 1124 |
-
$sql = "CREATE TABLE
|
| 1125 |
id bigint(20) NOT NULL AUTO_INCREMENT,
|
| 1126 |
date datetime NOT NULL,
|
| 1127 |
action VARCHAR(256) NOT NULL COLLATE utf8_general_ci,
|
|
@@ -1156,7 +1156,7 @@ class SimpleHistory {
|
|
| 1156 |
if ( 1 == intval( $db_version ) ) {
|
| 1157 |
|
| 1158 |
// Add column for action description in non-translatable free text
|
| 1159 |
-
$sql = "ALTER TABLE {$table_name} ADD COLUMN
|
| 1160 |
$wpdb->query( $sql );
|
| 1161 |
|
| 1162 |
$db_version_prev = $db_version;
|
|
@@ -1202,7 +1202,7 @@ class SimpleHistory {
|
|
| 1202 |
|
| 1203 |
// Update old table
|
| 1204 |
$sql = "
|
| 1205 |
-
CREATE TABLE
|
| 1206 |
id bigint(20) NOT NULL AUTO_INCREMENT,
|
| 1207 |
date datetime NOT NULL,
|
| 1208 |
logger varchar(30) DEFAULT NULL,
|
|
@@ -1227,7 +1227,7 @@ class SimpleHistory {
|
|
| 1227 |
|
| 1228 |
// Add context table
|
| 1229 |
$sql = "
|
| 1230 |
-
CREATE TABLE
|
| 1231 |
context_id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
| 1232 |
history_id bigint(20) unsigned NOT NULL,
|
| 1233 |
`key` varchar(255) DEFAULT NULL,
|
|
@@ -1293,7 +1293,7 @@ class SimpleHistory {
|
|
| 1293 |
|
| 1294 |
update_option( "simple_history_db_version", $db_version );
|
| 1295 |
|
| 1296 |
-
}// end db version 3 » 4
|
| 1297 |
|
| 1298 |
} // end check_for_upgrade
|
| 1299 |
|
| 1093 |
$table_name = $wpdb->prefix . SimpleHistory::DBTABLE;
|
| 1094 |
$table_name_contexts = $wpdb->prefix . SimpleHistory::DBTABLE_CONTEXTS;
|
| 1095 |
$first_install = false;
|
| 1096 |
+
|
| 1097 |
// If no db_version is set then this
|
| 1098 |
// is a version of Simple History < 0.4
|
| 1099 |
// or it's a first install
|
| 1121 |
|
| 1122 |
// We change the varchar size to add one num just to force update of encoding. dbdelta didn't see it otherwise.
|
| 1123 |
// This table is missing action_description, but we add that later on
|
| 1124 |
+
$sql = "CREATE TABLE " . $table_name . " (
|
| 1125 |
id bigint(20) NOT NULL AUTO_INCREMENT,
|
| 1126 |
date datetime NOT NULL,
|
| 1127 |
action VARCHAR(256) NOT NULL COLLATE utf8_general_ci,
|
| 1156 |
if ( 1 == intval( $db_version ) ) {
|
| 1157 |
|
| 1158 |
// Add column for action description in non-translatable free text
|
| 1159 |
+
$sql = "ALTER TABLE {$table_name} ADD COLUMN action_description longtext";
|
| 1160 |
$wpdb->query( $sql );
|
| 1161 |
|
| 1162 |
$db_version_prev = $db_version;
|
| 1202 |
|
| 1203 |
// Update old table
|
| 1204 |
$sql = "
|
| 1205 |
+
CREATE TABLE {$table_name} (
|
| 1206 |
id bigint(20) NOT NULL AUTO_INCREMENT,
|
| 1207 |
date datetime NOT NULL,
|
| 1208 |
logger varchar(30) DEFAULT NULL,
|
| 1227 |
|
| 1228 |
// Add context table
|
| 1229 |
$sql = "
|
| 1230 |
+
CREATE TABLE {$table_name_contexts} (
|
| 1231 |
context_id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
| 1232 |
history_id bigint(20) unsigned NOT NULL,
|
| 1233 |
`key` varchar(255) DEFAULT NULL,
|
| 1293 |
|
| 1294 |
update_option( "simple_history_db_version", $db_version );
|
| 1295 |
|
| 1296 |
+
} // end db version 3 » 4
|
| 1297 |
|
| 1298 |
} // end check_for_upgrade
|
| 1299 |
|
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.2.
|
| 9 |
Author: Pär Thernström
|
| 10 |
Author URI: http://simple-history.com/
|
| 11 |
License: GPL2
|
|
@@ -46,7 +46,7 @@ if ( version_compare( phpversion(), "5.3", ">=") ) {
|
|
| 46 |
// register_activation_hook( trailingslashit(WP_PLUGIN_DIR) . trailingslashit( plugin_basename(__DIR__) ) . "index.php" , array("SimpleHistory", "on_plugin_activate" ) );
|
| 47 |
|
| 48 |
if ( ! defined( 'SIMPLE_HISTORY_VERSION' ) ) {
|
| 49 |
-
define( 'SIMPLE_HISTORY_VERSION', '2.2.
|
| 50 |
}
|
| 51 |
|
| 52 |
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.2.3
|
| 9 |
Author: Pär Thernström
|
| 10 |
Author URI: http://simple-history.com/
|
| 11 |
License: GPL2
|
| 46 |
// register_activation_hook( trailingslashit(WP_PLUGIN_DIR) . trailingslashit( plugin_basename(__DIR__) ) . "index.php" , array("SimpleHistory", "on_plugin_activate" ) );
|
| 47 |
|
| 48 |
if ( ! defined( 'SIMPLE_HISTORY_VERSION' ) ) {
|
| 49 |
+
define( 'SIMPLE_HISTORY_VERSION', '2.2.3' );
|
| 50 |
}
|
| 51 |
|
| 52 |
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.3
|
| 7 |
-
Stable tag: 2.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 |
|
|
@@ -119,6 +119,10 @@ initiated by a specific user.
|
|
| 119 |
|
| 120 |
## Changelog
|
| 121 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
= 2.2.2 (September 2015) =
|
| 123 |
|
| 124 |
- Fixed: Logging stopped working for languages other then English. Sorry about that!
|
| 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.3
|
| 7 |
+
Stable tag: 2.2.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 |
|
| 119 |
|
| 120 |
## Changelog
|
| 121 |
|
| 122 |
+
= 2.2.3 (September 2015) =
|
| 123 |
+
|
| 124 |
+
- Fixed: On new installs the database tables was not created correctly and new events could not be logged.
|
| 125 |
+
|
| 126 |
= 2.2.2 (September 2015) =
|
| 127 |
|
| 128 |
- Fixed: Logging stopped working for languages other then English. Sorry about that!
|
