From 1f2e8fc9878f248fb3d1c4a2bf143890bf7c340f Mon Sep 17 00:00:00 2001 From: kjmtsh Date: Thu, 19 Mar 2015 18:05:37 +0000 Subject: [PATCH] bugfix release git-svn-id: https://plugins.svn.wordpress.org/sqlite-integration/trunk@1116219 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- ChangeLog | 7 +++++++ db.php | 2 +- pdoengine.class.php | 2 +- readme-ja.txt | 2 +- readme.txt | 4 +++- sqlite-integration.php | 4 ++-- utilities/utility.php | 2 +- 7 files changed, 16 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index d485294..5fd3f61 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2015-03-18 KOJIMA Toshiyasu + + * version 1.8.1 bugfix release. + + * pdoengine.class.php: bugfix. database file existent chech doesn't + work properly, which causes installation problem. + 2015-03-06 KOJIMA Toshiyasu * version 1.8 release. diff --git a/db.php b/db.php index 152c70c..abc4b38 100644 --- a/db.php +++ b/db.php @@ -5,7 +5,7 @@ * This file must be placed in the directory wordpress/wp-content/db.php. * WordPress loads this file automatically. * - * @version 1.8 + * @version 1.8.1 * @package SQLite Integration * @author Kojima Toshiyasu * diff --git a/pdoengine.class.php b/pdoengine.class.php index 3c91e0a..204faf0 100644 --- a/pdoengine.class.php +++ b/pdoengine.class.php @@ -170,7 +170,7 @@ class PDOEngine extends PDO { */ function __construct() { register_shutdown_function(array($this, '__destruct')); - if (is_file(FQDB)) { + if (!is_file(FQDB)) { $this->prepare_directory(); } $dsn = 'sqlite:' . FQDB; diff --git a/readme-ja.txt b/readme-ja.txt index 204662c..d1aab38 100644 --- a/readme-ja.txt +++ b/readme-ja.txt @@ -7,7 +7,7 @@ Author: Kojima Toshiyasu Author URI: http://dogwood.skr.jp/ Requires at least: 3.3 Tested up to: 4.1.1 -Stable tag: 1.8 +Stable tag: 1.8.1 License: GPLv2 License URI: http://www.gnu.org/licenses/gpl-2.0.html diff --git a/readme.txt b/readme.txt index cde8832..54d4fea 100644 --- a/readme.txt +++ b/readme.txt @@ -7,7 +7,7 @@ Author: Kojima Toshiyasu Author URI: http://dogwood.skr.jp/ Requires at least: 3.3 Tested up to: 4.1.1 -Stable tag: 1.8 +Stable tag: 1.8.1 License: GPLv2 License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -166,6 +166,8 @@ WordPress 4.1.1 compatibility is checked and some bugs are fixed. Upgrade is rec == Changelog == +See also ChangeLog file contained in the archive. + = 1.8 (2015-03-06) = * Fixed the bug about install process algorithm. * Fixed the index query regexp, which may cause a problem to some plugins. diff --git a/sqlite-integration.php b/sqlite-integration.php index feb181e..6b21311 100644 --- a/sqlite-integration.php +++ b/sqlite-integration.php @@ -4,7 +4,7 @@ Plugin Name: SQLite Integration Plugin URI: http://dogwood.skr.jp/wordpress/sqlite-integration/ Description: SQLite Integration is the plugin that enables WordPress to use SQLite. If you don't have MySQL and want to build a WordPress website, it's for you. Author: Kojima Toshiyasu -Version: 1.8 +Version: 1.8.1 Author URI: http://dogwood.skr.jp Text Domain: sqlite-integration Domain Path: /languages @@ -44,7 +44,7 @@ $siteurl = get_option('siteurl'); /* * Defines basic constants. */ -define('SQLITE_INTEGRATION_VERSION', '1.8'); +define('SQLITE_INTEGRATION_VERSION', '1.8.1'); define('SQLiteDir', dirname(plugin_basename(__FILE__))); define('SQLiteFilePath', dirname(__FILE__)); define('SQLiteDirName', basename(SQLiteFilePath)); diff --git a/utilities/utility.php b/utilities/utility.php index 1b61975..3d3250d 100644 --- a/utilities/utility.php +++ b/utilities/utility.php @@ -39,7 +39,7 @@ class SQLiteIntegrationUtils { return; $notice_string = __('Upgrading Notice: To finish upgrading, please activate SQLite Integration and go Setting >> SQLite Integration >> Miscellaneous, and click the button "update" at the bottom of the page. Or else replace wp-content/db.php with the one in sqlite-integration directory manually.', 'sqlite-integration'); $current_version = defined('SQLITE_INTEGRATION_VERSION') ? SQLITE_INTEGRATION_VERSION : ''; - if (version_compare($current_version, '1.8', '=')) return; + if (version_compare($current_version, '1.8.1', '=')) return; $version = ''; if (defined('WP_CONTENT_DIR')) { $path = WP_CONTENT_DIR . '/db.php';