From ab71b5b55012ab04803cbbd713ce974535d4877f Mon Sep 17 00:00:00 2001 From: Ustimenko Alexander Date: Wed, 6 Dec 2017 23:07:53 +0700 Subject: [PATCH 1/3] Bump wordpress compatibility to 4.9 --- .travis.yml | 1 + README.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 976b3da0..890e1c30 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ env: - DB_ENGINE=InnoDB matrix: - WP_VERSION= + - WP_VERSION=4.8.4 - WP_VERSION=4.7.5 - WP_VERSION=4.6.1 - WP_VERSION=4.5 diff --git a/README.md b/README.md index 1c4d0fe9..7ee01c4d 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ **Requires at least:** 3.2 -**Tested up to:** 4.8 +**Tested up to:** 4.9 **Stable tag:** 0.21.3 From 63d8b2cace8af7ebd6f795d2a94ed2fad45b4177 Mon Sep 17 00:00:00 2001 From: Ustimenko Alexander Date: Wed, 6 Dec 2017 23:49:16 +0700 Subject: [PATCH 2/3] Create null-object test in case of missing * Will help on non-contrained DB engines like MyISAM --- src/Model/Passing.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Model/Passing.php b/src/Model/Passing.php index b208ea0f..9287f1cf 100644 --- a/src/Model/Passing.php +++ b/src/Model/Passing.php @@ -304,7 +304,12 @@ public function buildResults() */ public function createTest() { - return $this->createRelated('WpTesting_Model_Test')->setWp($this->getWp()); + try { + return $this->createRelated('WpTesting_Model_Test')->setWp($this->getWp()); + } catch (fNotFoundException $e) { + $test = new WpTesting_Model_Test(); + return $test->setWp($this->getWp()); + } } public function trash() From 115746f6d3dbe38920820d59089c230770c258e0 Mon Sep 17 00:00:00 2001 From: Ustimenko Alexander Date: Thu, 7 Dec 2017 00:06:52 +0700 Subject: [PATCH 3/3] Bump to 0.21.4 --- CHANGELOG.md | 11 +++++++++++ README.md | 2 +- wp-testing.php | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4eaae501..fc635e95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,17 @@ ## Changelog ## +### 0.21.4 ### + +Welcome WordPress 4.9 + +* Fix missing test issue at "Respondents’ test results" page. +It concerns you only if your database uses old not recomended database engine +MyISAM, that is not clean other tables after removing something in main table. + +You can check your tables' engine at "Report the problem" under "System information". + + ### 0.21.3 ### Fix links to other posts at results page diff --git a/README.md b/README.md index 7ee01c4d..de6bfcd1 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ **Tested up to:** 4.9 -**Stable tag:** 0.21.3 +**Stable tag:** 0.21.4 **License:** GPLv3 diff --git a/wp-testing.php b/wp-testing.php index 4173f33c..25442af5 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.21.3 + * Version: 0.21.4 * Author: Alexander Ustimenko * Author URI: http://ustimen.co * License: GPL3