WordPress.org

Forums

WP-Polls
Some bugs for new version of wordpress (1 post)

  1. kaore
    Member
    Posted 2 years ago #

    Some of the issues I had: The javascript files are not included in the header and when added manually there is still a function missing (found on a forum):

    var pollsL10n = {
    ajax_url: "wp-content/plugins/wp-polls/wp-polls.php",
    text_wait: "Your last request is still being processed. Please wait a while ...",
    text_valid: "Please choose a valid poll answer.",
    text_multiple: "Maximum number of choices allowed: ",
    show_loading: "1",
    show_fading: "1"
    };

    Once this was settled (with correct ajax_url), the wp-polls.php still needs to be edited to include wordpress config or else add_action is not recognized:

    if (!function_exists('add_action')) {
    $wp_root = '../../..';
    if (file_exists($wp_root.'/wp-load.php')) {
    require_once($wp_root.'/wp-load.php');
    } else {
    require_once($wp_root.'/wp-config.php');
    }
    }

    Still had some issues after that and gave up.

    http://wordpress.org/extend/plugins/wp-polls/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.