Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed false result redirect page issue #2642

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading