bugfix release

git-svn-id: https://plugins.svn.wordpress.org/sqlite-integration/trunk@1116219 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
kjmtsh 2015-03-19 18:05:37 +00:00
parent 54d9e1b02a
commit 1f2e8fc987
7 changed files with 16 additions and 7 deletions

View File

@ -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.

2
db.php
View File

@ -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
*

View File

@ -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;

View File

@ -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

View File

@ -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.

View File

@ -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));

View File

@ -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';