Unverified Commit 89360782 authored by Lester Chan's avatar Lester Chan Committed by GitHub
Browse files

Merge pull request #140 from Jaska/result_templates

3rd parameter of resultfooter filters is now correct
parents c40ff8c9 485643db
......@@ -691,10 +691,10 @@ function display_pollresult( $poll_id, $user_voted = array(), $display_loading =
);
if ( ! empty( $user_voted ) || $poll_question_active === 0 || ! check_allowtovote() ) {
$template_footer = removeslashes( get_option( 'poll_template_resultfooter' ) );
$template_footer = apply_filters('wp_polls_template_resultfooter_markup', $template_footer, $poll_answer, $template_variables);
$template_footer = apply_filters('wp_polls_template_resultfooter_markup', $template_footer, $poll_question, $template_variables);
} else {
$template_footer = removeslashes( get_option( 'poll_template_resultfooter2' ) );
$template_footer = apply_filters('wp_polls_template_resultfooter2_markup', $template_footer, $poll_answer, $template_variables);
$template_footer = apply_filters('wp_polls_template_resultfooter2_markup', $template_footer, $poll_question, $template_variables);
}
if ( $poll_multiple_ans > 0 ) {
$template_footer = str_replace( '%POLL_MULTIPLE_ANS_MAX%', $poll_multiple_ans, $template_footer );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment