Skip to content

Commit

Permalink
Merge pull request #2390 from QuizandSurveyMaster/dev-zubair
Browse files Browse the repository at this point in the history
Dev zubair
  • Loading branch information
zubairraeen authored Oct 31, 2023
2 parents 59b1042 + 63e7d1a commit c4e7083
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions mlw_quizmaster2.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: Quiz And Survey Master
* Description: Easily and quickly add quizzes and surveys to your website.
* Version: 8.1.17
* Version: 8.1.18
* Author: ExpressTech
* Author URI: https://quizandsurveymaster.com/
* Plugin URI: https://expresstech.io/
Expand Down Expand Up @@ -43,7 +43,7 @@ class MLWQuizMasterNext {
* @var string
* @since 4.0.0
*/
public $version = '8.1.17';
public $version = '8.1.18';

/**
* QSM Alert Manager Object
Expand Down
13 changes: 7 additions & 6 deletions php/classes/class-qmn-quiz-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1572,7 +1572,7 @@ public function ajax_submit_results() {
),
)
);
die();
wp_die();
}
if ( 'publish' !== $post_status ) {
echo wp_json_encode(
Expand All @@ -1584,8 +1584,9 @@ public function ajax_submit_results() {
),
)
);
die();
wp_die();
}

$qsm_option = isset( $options->quiz_settings ) ? maybe_unserialize( $options->quiz_settings ) : array();
$qsm_option = array_map( 'maybe_unserialize', $qsm_option );
$dateStr = $qsm_option['quiz_options']['scheduled_time_end'];
Expand All @@ -1602,7 +1603,7 @@ public function ajax_submit_results() {
),
)
);
die();
wp_die();
}
if ( 0 != $options->limit_total_entries ) {
$mlw_qmn_entries_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(quiz_id) FROM {$wpdb->prefix}mlw_results WHERE deleted=0 AND quiz_id=%d", $options->quiz_id ) );
Expand All @@ -1616,7 +1617,7 @@ public function ajax_submit_results() {
),
)
);
die();
wp_die();
}
}
if ( 0 != $options->total_user_tries ) {
Expand All @@ -1643,7 +1644,7 @@ public function ajax_submit_results() {
),
)
);
die();
wp_die();
}
}
$data = array(
Expand All @@ -1653,7 +1654,7 @@ public function ajax_submit_results() {
'quiz_payment_id' => isset( $_POST['main_payment_id'] ) ? sanitize_text_field( wp_unslash( $_POST['main_payment_id'] ) ) : '',
);
echo wp_json_encode( $this->submit_results( $options, $data ) );
die();
wp_die();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion php/classes/class-qsm-install.php
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,7 @@ public static function install() {
form_type INT NOT NULL,
page_name varchar(255) NOT NULL,
page_url varchar(255) NOT NULL,
UNIQUE (unique_id),
UNIQUE KEY (unique_id),
PRIMARY KEY (result_id)
) $charset_collate;";

Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: quiz, survey, lead, test, score, exam, questionnaire, question,wordpress q
Requires at least: 4.9
Tested up to: 6.3
Requires PHP: 5.4
Stable tag: 8.1.17
Stable tag: 8.1.18
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -163,6 +163,9 @@ This is usually a theme conflict. You can [checkout out our common conflict solu
18. Database

== Changelog ==
= 8.1.18 (October 26, 2023) =
* Enhancement: Updated the message when you submit a quiz in draft mode

= 8.1.17 (October 11, 2023) =
* Feature: Added option to include custom text when the answer choice limit exceeds in multiple response type questions.
* Feature: Added a new feature to accept shortcodes in the text set to display at the end of quizzes.
Expand Down

0 comments on commit c4e7083

Please sign in to comment.