Unverified Commit b04c587a authored by Lester Chan's avatar Lester Chan
Browse files

Fixed #136, removed legacy multiple polls

parent c4da11ca
......@@ -381,12 +381,6 @@ switch($mode) {
<tbody id="manage_polls">
<?php
if($polls) {
if(function_exists('dynamic_sidebar')) {
$options = get_option('widget_polls');
$multiple_polls = explode(',', $options['multiple_polls']);
} else {
$multiple_polls = array();
}
$i = 0;
$current_poll = (int) get_option('poll_currentpoll');
$latest_poll = (int) get_option('poll_latestpoll');
......@@ -416,8 +410,6 @@ switch($mode) {
if($poll_id === $latest_poll) {
$style = 'class="highlight"';
}
} else if(in_array($poll_id, $multiple_polls, true)) {
$style = 'class="highlight"';
}
echo "<tr id=\"poll-$poll_id\" $style>\n";
echo '<td><strong>'.number_format_i18n($poll_id).'</strong></td>'."\n";
......@@ -430,8 +422,6 @@ switch($mode) {
if($poll_id === $latest_poll) {
echo '<strong>'.__('Displayed:', 'wp-polls').'</strong> ';
}
} else if(in_array($poll_id, $multiple_polls, true)) {
echo '<strong>'.__('Displayed:', 'wp-polls').'</strong> ';
}
echo wp_kses_post( $poll_question )."</td>\n";
echo '<td>'.number_format_i18n($poll_totalvoters)."</td>\n";
......
......@@ -3,7 +3,7 @@
Plugin Name: WP-Polls
Plugin URI: https://lesterchan.net/portfolio/programming/php/
Description: Adds an AJAX poll system to your WordPress blog. You can easily include a poll into your WordPress's blog post/page. WP-Polls is extremely customizable via templates and css styles and there are tons of options for you to choose to ensure that WP-Polls runs the way you wanted. It now supports multiple selection of answers.
Version: 2.75.4
Version: 2.75.5
Author: Lester 'GaMerZ' Chan
Author URI: https://lesterchan.net
Text Domain: wp-polls
......@@ -29,7 +29,7 @@ Text Domain: wp-polls
*/
### Version
define( 'WP_POLLS_VERSION', '2.75.4' );
define( 'WP_POLLS_VERSION', '2.75.5' );
### Create Text Domain For Translations
......
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