fixed meta query problem and added Spanish language support.
git-svn-id: https://plugins.svn.wordpress.org/sqlite-integration/trunk@911415 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
7d94787d40
commit
8286b0ac20
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -720,13 +720,13 @@ class PDOSQLiteDriver {
|
||||||
*/
|
*/
|
||||||
private function rewrite_between() {
|
private function rewrite_between() {
|
||||||
if (!$this->rewrite_between) return;
|
if (!$this->rewrite_between) return;
|
||||||
$pattern = '/\\s*([^\\s\(]*)?\\s*BETWEEN\\s*([^\\s]*)?\\s*AND\\s*([^\\s\)]*)?\\s*/ims';
|
$pattern = '/\\s*(CAST\(.+?\)|[^\\s\(]*)?\\s*BETWEEN\\s*([^\\s]*)?\\s*AND\\s*([^\\s\)]*)?\\s*/ims';
|
||||||
if (preg_match($pattern, $this->_query, $match)) {
|
if (preg_match($pattern, $this->_query, $match)) {
|
||||||
$column_name = trim($match[1]);
|
$column_name = trim($match[1]);
|
||||||
$min_value = trim($match[2]);
|
$min_value = trim($match[2]);
|
||||||
$max_value = trim($match[3]);
|
$max_value = trim($match[3]);
|
||||||
$max_value = rtrim($max_value);
|
$max_value = rtrim($max_value);
|
||||||
$replacement = " $column_name >= '$min_value' AND $column_name <= '$max_value'";
|
$replacement = " $column_name >= $min_value AND $column_name <= $max_value";
|
||||||
$this->_query = str_ireplace($match[0], $replacement, $this->_query);
|
$this->_query = str_ireplace($match[0], $replacement, $this->_query);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ Author: Kojima Toshiyasu
|
||||||
Author URI: http://dogwood.skr.jp/
|
Author URI: http://dogwood.skr.jp/
|
||||||
Requires at least: 3.3
|
Requires at least: 3.3
|
||||||
Tested up to: 3.9
|
Tested up to: 3.9
|
||||||
Stable tag: 1.6.2
|
Stable tag: 1.6.3
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
|
||||||
|
@ -49,7 +49,10 @@ WordPress.org は MySQL 以外のデータベースを正式にサポートし
|
||||||
|
|
||||||
= 翻訳 =
|
= 翻訳 =
|
||||||
|
|
||||||
ドキュメントは英語で書かれています。日本語のカタログファイルと、.potファイルがアーカイブに含まれています。もしあなたの言語に翻訳をしたら、知らせてください。
|
ドキュメントは英語で書かれています。もしあなたの言語に翻訳をしたら、知らせてください。
|
||||||
|
|
||||||
|
* 日本語(kjmtsh)
|
||||||
|
* スペイン語(Pablo Laguna)
|
||||||
|
|
||||||
== インストール ==
|
== インストール ==
|
||||||
|
|
||||||
|
@ -157,10 +160,15 @@ SQLite に戻りたいときには、この行を次のように変更するか
|
||||||
|
|
||||||
== Upgrade Notice ==
|
== Upgrade Notice ==
|
||||||
|
|
||||||
query_posts() や WP_Query() を使うときに、オプションの一部が機能していませんでした。コメントを投稿するときに、本文に含まれるバッククォートが削除されてしまっていました。これらのバグとその他小さなバグを修正してあります。ドキュメントとソースのコメントを書き直しました。WordPress 3.9 alpha でインストールテストをしました。自動アップグレードで失敗するようなら、FTPを使っての手動アップグレードを試してみてください。
|
メタクエリを使うときのバグを修正しました。自動アップグレードで失敗するようなら、FTPを使っての手動アップグレードを試してみてください。
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 1.6.3 (2014-05-10) =
|
||||||
|
* BETWEEN 比較をするメタクエリのバグを修正しました。
|
||||||
|
* スペイン語カタログを追加しました。
|
||||||
|
* WordPress 3.9.1 での動作チェックをしました。
|
||||||
|
|
||||||
= 1.6.2 (2014-05-05) =
|
= 1.6.2 (2014-05-05) =
|
||||||
* 正規表現に関するバグを修正しました。
|
* 正規表現に関するバグを修正しました。
|
||||||
* 管理画面のドキュメント(表示されていなかった)を修正しました。
|
* 管理画面のドキュメント(表示されていなかった)を修正しました。
|
||||||
|
|
14
readme.txt
14
readme.txt
|
@ -7,7 +7,7 @@ Author: Kojima Toshiyasu
|
||||||
Author URI: http://dogwood.skr.jp/
|
Author URI: http://dogwood.skr.jp/
|
||||||
Requires at least: 3.3
|
Requires at least: 3.3
|
||||||
Tested up to: 3.9
|
Tested up to: 3.9
|
||||||
Stable tag: 1.6.2
|
Stable tag: 1.6.3
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
|
||||||
|
@ -49,7 +49,10 @@ WordPress.org doesn't officially support using any other database than MySQL. So
|
||||||
|
|
||||||
= Translation =
|
= Translation =
|
||||||
|
|
||||||
Documentation is written in English. Japanese catalog file and .pot file are included in the archive. If you translate it into your language, please let me know.
|
Documentation is written in English. If you translate it into your language, please let me know.
|
||||||
|
|
||||||
|
* Japanese (kjmtsh)
|
||||||
|
* Spanish (Pablo Laguna)
|
||||||
|
|
||||||
== Installation ==
|
== Installation ==
|
||||||
|
|
||||||
|
@ -155,10 +158,15 @@ This plugin doesn't support 'WP_PLUGIN_URL' constant.
|
||||||
|
|
||||||
== Upgrade Notice ==
|
== Upgrade Notice ==
|
||||||
|
|
||||||
When query_posts() or WP_Query() is used, some options didn't work properly. When you post comments, the back quotes in the content was removed. These bugs and some minor ones are fixed. Documentations and doc strings are revised. WordPress 3.9 was tested. When auto upgrading fails, please try manual upgrade via FTP.
|
Fixed the bug about meta query with BETWEEN comparison which may cause some plugins to work correctly. Upgrade is recommended. When auto upgrading fails, please try manual upgrade via FTP.
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 1.6.3 (2014-05-10) =
|
||||||
|
* Fixed the bug about manipulating meta query with BETWEEN comparison.
|
||||||
|
* Added the Spanish langugae support.
|
||||||
|
* WordPress 3.9.1 compatibility checked.
|
||||||
|
|
||||||
= 1.6.2 (2014-05-05) =
|
= 1.6.2 (2014-05-05) =
|
||||||
* Fixed some bugs for the regular expression.
|
* Fixed some bugs for the regular expression.
|
||||||
* Fixed the documents on the admin dashboard.
|
* Fixed the documents on the admin dashboard.
|
||||||
|
|
|
@ -4,7 +4,7 @@ Plugin Name: SQLite Integration
|
||||||
Plugin URI: http://dogwood.skr.jp/wordpress/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.
|
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
|
Author: Kojima Toshiyasu
|
||||||
Version: 1.6.2
|
Version: 1.6.3
|
||||||
Author URI: http://dogwood.skr.jp
|
Author URI: http://dogwood.skr.jp
|
||||||
Text Domain: sqlite-integration
|
Text Domain: sqlite-integration
|
||||||
Domain Path: /languages
|
Domain Path: /languages
|
||||||
|
|
Loading…
Reference in New Issue