WordPress.org

Ready to get started?Download WordPress

Forums

WP-Polls
bug report (3 posts)

  1. Dan-Lucian Stefancu
    Member
    Posted 2 years ago #

    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/

  2. Lester Chan
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks! Will fix it in the trunk

  3. Lester Chan
    Member
    Plugin Author

    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags