Version Description
- 0.17 is 0.16 (WordPress SVN bug)
Download this release
Release Info
Developer | xeno010 |
Plugin | Wp-Pro-Quiz |
Version | 0.17 |
Comparing to | |
See all releases |
Code changes from version 0.16 to 0.17
- lib/helper/WpProQuiz_Helper_DbUpgrade.php +32 -1
- lib/helper/WpProQuiz_Helper_Upgrade.php +2 -0
- readme.txt +6 -1
- wp-pro-quiz.php +2 -2
lib/helper/WpProQuiz_Helper_DbUpgrade.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
class WpProQuiz_Helper_DbUpgrade {
|
3 |
|
4 |
-
const WPPROQUIZ_DB_VERSION =
|
5 |
|
6 |
private $_wpdb;
|
7 |
private $_prefix;
|
@@ -413,4 +413,35 @@ class WpProQuiz_Helper_DbUpgrade {
|
|
413 |
|
414 |
return 13;
|
415 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
416 |
}
|
1 |
<?php
|
2 |
class WpProQuiz_Helper_DbUpgrade {
|
3 |
|
4 |
+
const WPPROQUIZ_DB_VERSION = 14;
|
5 |
|
6 |
private $_wpdb;
|
7 |
private $_prefix;
|
413 |
|
414 |
return 13;
|
415 |
}
|
416 |
+
|
417 |
+
private function upgradeDbV13() {
|
418 |
+
|
419 |
+
//WordPress SVN Bug
|
420 |
+
|
421 |
+
$this->_wpdb->query('SELECT * FROM `'.$this->_wpdb->prefix.'wp_pro_quiz_master` LIMIT 0,1');
|
422 |
+
|
423 |
+
$names = $this->_wpdb->get_col_info('name');
|
424 |
+
|
425 |
+
if(!in_array('hide_answer_message_box', $names)) {
|
426 |
+
$this->_wpdb->query('ALTER TABLE `'.$this->_wpdb->prefix.'wp_pro_quiz_master` ADD `hide_answer_message_box` TINYINT( 1 ) NOT NULL');
|
427 |
+
}
|
428 |
+
|
429 |
+
if(!in_array('disabled_answer_mark', $names)) {
|
430 |
+
$this->_wpdb->query('ALTER TABLE `'.$this->_wpdb->prefix.'wp_pro_quiz_master` ADD `disabled_answer_mark` TINYINT( 1 ) NOT NULL');
|
431 |
+
}
|
432 |
+
|
433 |
+
if(!in_array('show_max_question', $names)) {
|
434 |
+
$this->_wpdb->query('ALTER TABLE `'.$this->_wpdb->prefix.'wp_pro_quiz_master` ADD `show_max_question` TINYINT( 1 ) NOT NULL');
|
435 |
+
}
|
436 |
+
|
437 |
+
if(!in_array('show_max_question_value', $names)) {
|
438 |
+
$this->_wpdb->query('ALTER TABLE `'.$this->_wpdb->prefix.'wp_pro_quiz_master` ADD `show_max_question_value` INT UNSIGNED NOT NULL');
|
439 |
+
}
|
440 |
+
|
441 |
+
if(!in_array('show_max_question_percent', $names)) {
|
442 |
+
$this->_wpdb->query('ALTER TABLE `'.$this->_wpdb->prefix.'wp_pro_quiz_master` ADD `show_max_question_percent` TINYINT( 1 ) NOT NULL');
|
443 |
+
}
|
444 |
+
|
445 |
+
return 14;
|
446 |
+
}
|
447 |
}
|
lib/helper/WpProQuiz_Helper_Upgrade.php
CHANGED
@@ -8,6 +8,8 @@ class WpProQuiz_Helper_Upgrade {
|
|
8 |
$oldVersion = get_option('wpProQuiz_version');
|
9 |
|
10 |
switch($oldVersion) {
|
|
|
|
|
11 |
default:
|
12 |
WpProQuiz_Helper_Upgrade::install();
|
13 |
break;
|
8 |
$oldVersion = get_option('wpProQuiz_version');
|
9 |
|
10 |
switch($oldVersion) {
|
11 |
+
case '0.17':
|
12 |
+
break;
|
13 |
default:
|
14 |
WpProQuiz_Helper_Upgrade::install();
|
15 |
break;
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: xeno010
|
|
3 |
Tags: quiz, test, answer, question, learning
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 3.5
|
6 |
-
Stable tag: 0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -162,3 +162,8 @@ http://www.it-gecko.de/wp-pro-quiz-quiz-plugin-fuer-wordpress.html (scroll to "D
|
|
162 |
* Option "correct- and incorrect-answermark" added
|
163 |
* Option "show only specific number of questions" added
|
164 |
* Bugfix in statistic function
|
|
|
|
|
|
|
|
|
|
3 |
Tags: quiz, test, answer, question, learning
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 3.5
|
6 |
+
Stable tag: 0.17
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
162 |
* Option "correct- and incorrect-answermark" added
|
163 |
* Option "show only specific number of questions" added
|
164 |
* Bugfix in statistic function
|
165 |
+
* Translation for Dutch have been added (Thanks Bas W.)
|
166 |
+
* Translation for Norwegian have been added (Thanks Stein Ivar J.)
|
167 |
+
|
168 |
+
= 0.17 =
|
169 |
+
* 0.17 is 0.16 (WordPress SVN bug)
|
wp-pro-quiz.php
CHANGED
@@ -3,12 +3,12 @@
|
|
3 |
Plugin Name: WP-Pro-Quiz
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/wp-pro-quiz
|
5 |
Description: A powerful and beautiful quiz plugin for WordPress.
|
6 |
-
Version: 0.
|
7 |
Author: Julius Fischer
|
8 |
Author URI: http://www.it-gecko.de
|
9 |
*/
|
10 |
|
11 |
-
define('WPPROQUIZ_VERSION', '0.
|
12 |
|
13 |
define('WPPROQUIZ_PATH', dirname(__FILE__));
|
14 |
define('WPPROQUIZ_URL', plugins_url('', __FILE__));
|
3 |
Plugin Name: WP-Pro-Quiz
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/wp-pro-quiz
|
5 |
Description: A powerful and beautiful quiz plugin for WordPress.
|
6 |
+
Version: 0.17
|
7 |
Author: Julius Fischer
|
8 |
Author URI: http://www.it-gecko.de
|
9 |
*/
|
10 |
|
11 |
+
define('WPPROQUIZ_VERSION', '0.17');
|
12 |
|
13 |
define('WPPROQUIZ_PATH', dirname(__FILE__));
|
14 |
define('WPPROQUIZ_URL', plugins_url('', __FILE__));
|