Skip to content

Commit

Permalink
Merge pull request #115 from fpcorso/release/4.0.1
Browse files Browse the repository at this point in the history
Release/4.0.1
  • Loading branch information
fpcorso committed Jan 20, 2015
2 parents 3f6c18b + cdd4c70 commit 61011b5
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 24 deletions.
18 changes: 4 additions & 14 deletions includes/qmn_credits.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,21 +132,11 @@ function mlw_qmn_setTab(tab) {
<br />
</div>
<div id="mlw_quiz_changelog" style="display: none;">
<h3><?php echo $mlw_quiz_version; ?> (January 14, 2015)</h3>
<h3><?php echo $mlw_quiz_version; ?> (January 21, 2015)</h3>
<ul>
<li>* Added Ability To Add Categories To Your Quizzes</li>
<li>* Added Multiple Choice And Multiple Response To Required System</li>
<li>* Added Wp Editor To Results Pages</li>
<li>* Added Shortcode Capability To Results Pages</li>
<li>* Added Translation Capabilities</li>
<li>* Created New Addon Settings Page</li>
<li>* Design Changes To Quiz Settings Page</li>
<li>* In Code: Added 20 New Filters And Hooks</li>
<li>* In Code: Turned Question Types Into Extendable Functions For Creating Own Question Types</li>
<li>* In Code: Created New Plugin Helper Class For Extending Plugin</li>
<li>* In Code: Rewrote 75% of quiz shortcode file. Now With New Quiz Manager Class</li>
<li>* In Code: Re-organized File/Directory Structure</li>
<li>* In Code: Separated Quiz Settings Functions Into Own Files</li>
<li>* Results HTML Bug Fix</li>
<li>* Question HTML Bug Fix</li>
<li>* Multiple Response Points Bug Fix</li>
</ul>
</div>
<div id="mlw_quiz_requested" style="display: none;">
Expand Down
4 changes: 2 additions & 2 deletions includes/qmn_options_questions_tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function mlw_options_questions_tab_content()
if ( isset($_POST["edit_question"]) && $_POST["edit_question"] == "confirmation")
{
//Variables from edit question form
$edit_question_name = trim(preg_replace('/\s+/',' ', nl2br(htmlspecialchars($_POST["edit_question_name"], ENT_QUOTES))));
$edit_question_name = trim(preg_replace('/\s+/',' ', nl2br(htmlspecialchars(stripslashes($_POST["edit_question_name"]), ENT_QUOTES))));
$edit_question_answer_info = $_POST["edit_correct_answer_info"];
$mlw_edit_question_id = intval($_POST["edit_question_id"]);
$mlw_edit_question_type = $_POST["edit_question_type"];
Expand Down Expand Up @@ -233,7 +233,7 @@ function mlw_options_questions_tab_content()
if ( isset($_POST["create_question"]) && $_POST["create_question"] == "confirmation")
{
//Variables from new question form
$question_name = trim(preg_replace('/\s+/',' ', nl2br(htmlspecialchars($_POST["question_name"], ENT_QUOTES))));
$question_name = trim(preg_replace('/\s+/',' ', nl2br(htmlspecialchars(stripslashes($_POST["question_name"]), ENT_QUOTES))));
$question_answer_info = $_POST["correct_answer_info"];
$question_type = $_POST["question_type"];
$comments = htmlspecialchars($_POST["comments"], ENT_QUOTES);
Expand Down
4 changes: 2 additions & 2 deletions includes/qmn_options_results_page_tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function delete_landing(id)
echo "<input type='hidden' id='message_after_end_".$mlw_each_count."' name='message_after_end_".$mlw_each_count."' value='0'/>-";
echo "</td>";
echo "<td>";
wp_editor( $mlw_each[2], "message_after_".$mlw_each_count );
wp_editor( htmlspecialchars_decode($mlw_each[2], ENT_QUOTES), "message_after_".$mlw_each_count );
//echo "<textarea cols='80' rows='15' id='message_after_".$mlw_each_count."' name='message_after_".$mlw_each_count."'>".$mlw_each[2]."</textarea>";
echo "</td>";
echo "</tr>";
Expand All @@ -233,7 +233,7 @@ function delete_landing(id)
echo "<input type='text' id='message_after_end_".$mlw_each_count."' name='message_after_end_".$mlw_each_count."' title='What score must the user score worse than to see this page' value='".$mlw_each[1]."' />";
echo "</td>";
echo "<td>";
wp_editor( $mlw_each[2], "message_after_".$mlw_each_count );
wp_editor( htmlspecialchars_decode($mlw_each[2], ENT_QUOTES), "message_after_".$mlw_each_count );
//echo "<textarea cols='80' rows='15' id='message_after_".$mlw_each_count."' title='What text will the user see when reaching this page' name='message_after_".$mlw_each_count."'>".$mlw_each[2]."</textarea>";
echo "</td>";
echo "</tr>";
Expand Down
4 changes: 2 additions & 2 deletions includes/qmn_question_types.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ function qmn_multiple_response_review($id, $question, $answers)
{
if (isset($_POST["question".$id."_".$i]) && htmlspecialchars(stripslashes($_POST["question".$id."_".$i]), ENT_QUOTES) == esc_attr($answer[0]))
{
$return_array["points"] = $answer[1];
$return_array["points"] += $answer[1];
$return_array["user_text"] .= strval(htmlspecialchars_decode($answer[0], ENT_QUOTES)).".";
if ($answer[2] == 1)
{
Expand Down Expand Up @@ -547,7 +547,7 @@ function qmn_horizontal_multiple_response_review($id, $question, $answers)
{
if (isset($_POST["question".$id."_".$i]) && htmlspecialchars(stripslashes($_POST["question".$id."_".$i]), ENT_QUOTES) == esc_attr($answer[0]))
{
$return_array["points"] = $answer[1];
$return_array["points"] += $answer[1];
$return_array["user_text"] .= strval(htmlspecialchars_decode($answer[0], ENT_QUOTES)).".";
if ($answer[2] == 1)
{
Expand Down
6 changes: 3 additions & 3 deletions mlw_quizmaster2.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: Quiz Master Next
* Description: Use this plugin to add multiple quizzes, tests, or surveys to your website.
* Version: 4.0.0
* Version: 4.0.1
* Author: Frank Corso
* Author URI: http://www.mylocalwebstop.com/
* Plugin URI: http://www.mylocalwebstop.com/
Expand All @@ -16,7 +16,7 @@
* You understand that you install, operate, and unistall the plugin at your own discretion and risk.
*
* @author Frank Corso
* @version 4.0.0
* @version 4.0.1
*/

/**
Expand All @@ -34,7 +34,7 @@ class MLWQuizMasterNext
* @var string
* @since 4.0.0
*/
public $version = '4.0.0';
public $version = '4.0.1';

/**
* QMN Alert Manager Object
Expand Down
10 changes: 9 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
Tags: quiz, test, score, exam, survey, contact, form, email, answer, question
Requires at least: 3.8.1
Tested up to: 4.1
Stable tag: 4.0.0
Stable tag: 4.0.1
License URI: http://www.gnu.org/licenses/gpl-2.0.html

The easiest and most flexible way to add multiple quizzes, tests, and surveys to your website.
Expand Down Expand Up @@ -120,6 +120,11 @@ Feel free to use the widget on the help page within the plugin or from the conta

== Changelog ==

= 4.0.1 (January 21, 2015) =
* Results HTML Bug Fix
* Question HTML Bug Fix
* Multiple Response Points Bug Fix

= 4.0.0 (January 14, 2015) =
* Added Ability To Add Categories To Your Quizzes
* Added Multiple Choice And Multiple Response To Required System
Expand Down Expand Up @@ -607,6 +612,9 @@ Feel free to use the widget on the help page within the plugin or from the conta

== Upgrade Notice ==

= 4.0.1 =
Upgrade for various bug fixes.

= 4.0.0 =
Upgrade for categories, new editor for results pages, shortcode capability on results pages, enhanced required question system, and more.

Expand Down

0 comments on commit 61011b5

Please sign in to comment.