Title: [Plugin: WP-Polls] bug report
Last modified: August 20, 2016

---

# [Plugin: WP-Polls] bug report

 *  [Dan-Lucian Stefancu](https://wordpress.org/support/users/de-ce/)
 * (@de-ce)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-polls-bug-report/)
 * the current version generates some php notices.
 * quick fix, just change on line 1335 on wp-polls.php
 *     ```
       } elseif (intval($_GET['pollresult']) > 0) {
       		...
       } elseif (intval($_GET['pollbooth']) > 0) {
       		...
       } // End if(!empty($_POST['vote']))
       ```
   
 * with:
 *     ```
       } elseif (isset($_GET['pollresult']) && intval($_GET['pollresult']) > 0) {
       		...
       	}
       } elseif (isset($_GET['pollbooth']) && intval($_GET['pollbooth']) > 0) {
       		...
       	}
       } // End if(!empty($_POST['vote']))
       ```
   
 * Also, there is a deprecated function:
    `js_escape` deprecated in wp 2.8 for `
   esc_js`
 * [http://wordpress.org/extend/plugins/wp-polls/](http://wordpress.org/extend/plugins/wp-polls/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-polls-bug-report/#post-2750917)
 * Thanks! Will fix it in the trunk
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-polls-bug-report/#post-2750944)
 * Fixed. The isset() bug is already fixed in trunk version. I fixed the esc_js 
   for this one
 * [http://plugins.trac.wordpress.org/changeset/545665](http://plugins.trac.wordpress.org/changeset/545665)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: WP-Polls] bug report’ is closed to new replies.

 * ![](https://ps.w.org/wp-polls/assets/icon.svg?rev=977996)
 * [WP-Polls](https://wordpress.org/plugins/wp-polls/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-polls/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-polls/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-polls/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-polls/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-polls/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-wp-polls-bug-report/#post-2750944)
 * Status: not a support question