Skip to content

Commit

Permalink
fixed false result redirect page issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zubairraeen committed Sep 11, 2024
1 parent fdde6dc commit 504249c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions php/admin/options-page-questions-tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ class="save-page-button button button-primary"><?php esc_html_e( 'Save Questions
$show_limit_multiple_response = '';
$show_file_upload_type = '';
$show_file_upload_limit = '';
$placeholder_text = '';
$placeholder_text = '';
foreach ( $question_types as $type ) {
if ( isset( $type['options']['show_correct_answer_info'] ) && $type['options']['show_correct_answer_info'] ) {
$show_correct_answer_info .= ',' . $type['slug'];
Expand Down Expand Up @@ -495,7 +495,7 @@ class="save-page-button button button-primary"><?php esc_html_e( 'Save Questions
'type' => 'text',
'default' => '',
'priority' => '1',
'show' => '3, 5, 7' ,
'show' => '3, 5, 7',
),
);
$advanced_question_option = apply_filters( 'qsm_question_advanced_option', $advanced_question_option );
Expand Down
2 changes: 1 addition & 1 deletion php/admin/options-page-results-page-tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ function qsm_options_results_tab_template(){
<p><?php esc_html_e( 'Type', 'quiz-master-next' );?> <span class="qsm-hightlight-text"> / </span> <?php esc_html_e( ' to insert template variables', 'quiz-master-next' ); ?></p>
<?php do_action( 'qsm_result_page_before_redirect_input', $quiz_id, $categories ); ?>
<p><?php esc_html_e( 'Or, redirect the user by entering the URL below:', 'quiz-master-next' ); ?></p>
<input type="text" class="results-page-redirect" value="<# if ( data.redirect && 'undefined' !== data.redirect) { #>{{ data.redirect }}<# } #>">
<input type="text" class="results-page-redirect" value="<# if ( data.redirect && 'undefined' !== data.redirect && 'false' !== data.redirect) { #>{{ data.redirect }}<# } #>">
<?php do_action( 'qsm_result_page_after', $quiz_id, $categories ); ?>
</div>
</main>
Expand Down
10 changes: 5 additions & 5 deletions php/shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@ function qsm_generate_fb_header_metadata() {
<?php
}
}
$quiz_id = $mlwQuizMasterNext->quizCreator->get_id();
$featured_image = get_option("quiz_featured_image_$quiz_id");
?>
<link rel="preload" href="<?php echo esc_url($featured_image); ?>" as="image">
<?php
$quiz_id = $mlwQuizMasterNext->quizCreator->get_id();
$featured_image = get_option("quiz_featured_image_$quiz_id");
?>
<link rel="preload" href="<?php echo esc_url($featured_image); ?>" as="image">
<?php
}

add_action( 'wp_head', 'qsm_generate_fb_header_metadata' );
Expand Down

0 comments on commit 504249c

Please sign in to comment.