From eb0af03800439de99db3807bc34b8d2f71e9c4f1 Mon Sep 17 00:00:00 2001 From: Ustimenko Alexander Date: Mon, 30 Nov 2015 22:57:09 +0600 Subject: [PATCH 1/3] Improve external addons intergation * Pass ORM aware into ORM event * Extract getTablePrefix in addon wp facade --- src/Addon/IWordPressFacade.php | 4 ++++ src/Facade.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Addon/IWordPressFacade.php b/src/Addon/IWordPressFacade.php index 00bb8819..10e3812b 100644 --- a/src/Addon/IWordPressFacade.php +++ b/src/Addon/IWordPressFacade.php @@ -2,6 +2,10 @@ interface WpTesting_Addon_IWordPressFacade extends WpTesting_WordPress_IPriority { + /** + * @return string + */ + public function getTablePrefix(); /** * Hooks a function on to a specific action. diff --git a/src/Facade.php b/src/Facade.php index ab96d2a2..0cf5b558 100644 --- a/src/Facade.php +++ b/src/Facade.php @@ -351,7 +351,7 @@ public function setupORM() $schema->setKeysOverride(array(), $wptPrefix . 'fields', 'foreign'); $schema->setKeysOverride(array(), $wptPrefix . 'field_values', 'foreign'); - $this->wp->doAction('wp_testing_orm_setup', $schema, $database); + $this->wp->doAction('wp_testing_orm_setup', $schema, $database, $this); $this->isOrmSettedUp = true; } From e610da05059fd085bd7caee24d656bbd02392656 Mon Sep 17 00:00:00 2001 From: Ustimenko Alexander Date: Wed, 2 Dec 2015 00:51:41 +0600 Subject: [PATCH 2/3] Add "equals to" button in formula comparisions --- src/Template/Test/Editor/edit-formulas.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Template/Test/Editor/edit-formulas.php b/src/Template/Test/Editor/edit-formulas.php index cfff27b2..277fe901 100644 --- a/src/Template/Test/Editor/edit-formulas.php +++ b/src/Template/Test/Editor/edit-formulas.php @@ -52,7 +52,7 @@ - , <=, =>, <>, AND, OR, ( {selection} ), NOT ( {selection} )') as $operator): ?> + , <=, =>, <>, =, AND, OR, ( {selection} ), NOT ( {selection} )') as $operator): ?> Date: Thu, 3 Dec 2015 23:45:48 +0600 Subject: [PATCH 3/3] Describe hotfix in changelog and bump version to 0.18.1 --- CHANGELOG.md | 7 +++++++ README.md | 2 +- wp-testing.php | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90232535..a0cd9f4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ ## Changelog ## +### 0.18.1 ### + +Add "equals to" button into formula comparisions + +* Improve external addons intergation + + ### 0.18 ### Really-multisite, menu for non-admins and migration fault tolerance diff --git a/README.md b/README.md index a66bddf6..bafa0968 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ **Tags:** psychological, testing, test, quiz **Requires at least:** 3.2 **Tested up to:** 4.3.1 -**Stable tag:** 0.18 +**Stable tag:** 0.18.1 **License:** GPLv3 **License URI:** http://www.gnu.org/licenses/gpl-3.0.html diff --git a/wp-testing.php b/wp-testing.php index fe07f139..240a4495 100644 --- a/wp-testing.php +++ b/wp-testing.php @@ -3,7 +3,7 @@ * Plugin Name: Wp-testing * Plugin URI: http://wordpress.org/extend/plugins/wp-testing/ * Description: Helps to create psychological tests. - * Version: 0.18 + * Version: 0.18.1 * Author: Alexander Ustimenko * Author URI: http://ustimen.co * License: GPL3