I managed to get it to work under 0.8.3.1 by changing this function as follows:
function bb_polldaddy_preg($post_text, $post_id)
{
global $bb_polldaddy_options;
global $bb_current_user;
$callback = 'bb_polldaddy_get_poll_script_callback';
if ($bb_polldaddy_options['first_only'] && !bb_is_first($post_id)) {
$callback = 'bb_polldaddy_first_only_error_handler';
}
if (!$user_id = get_post_author_id($post_id)) {
$callback = 'bb_polldaddy_permission_error_handler';
}
if ($bb_polldaddy_options['permission'] && !$bb_current_user->has_cap($bb_polldaddy_options['permission'])) {
$callback = 'bb_polldaddy_permission_error_handler';
}
$post_text = preg_replace_callback('@\[polldaddy poll=(?:"|\')?([0-9]+)(?:"|\')?\]@', $callback, $post_text);
return $post_text;
}
I also added this function to the plugin, since my bbPress version doesn't have it:
if ( !function_exists( 'checked' ) ) :
function checked( $checked, $current) {
if ( $checked == $current)
echo ' checked="checked"';
}
endif;
Works well after I made those changes. (I can't upgrade to 0.9 yet because of the wordpress/mediawiki integration)