Correctly display poll ID and shortcode for poll starting in the future.
Currently if a poll starts in the future the poll ID displays the latest "active" poll, not the latest poll.
This section could be re-written to just use the $latest_pollid = $polla_qid; but I didn't want to make that choice for you. This way just checks to see if the $polla_qid > $latest_pollid and does the right thing.
Correctly display poll ID and shortcode for poll starting in the future.
Currently if a poll starts in the future the poll ID displays the latest "active" poll, not the latest poll.
This section could be re-written to just use the
$latest_pollid = $polla_qid;
but I didn't want to make that choice for you. This way just checks to see if the$polla_qid > $latest_pollid
and does the right thing.