Unverified Commit dd7bf2c2 authored by Lester Chan's avatar Lester Chan
Browse files

Add hourly to cron

parent 952bbc00
......@@ -3,8 +3,8 @@ Contributors: GamerZ
Donate link: http://lesterchan.net/site/donation/
Tags: poll, polls, polling, vote, booth, democracy, ajax, survey, post, widget
Requires at least: 4.0
Tested up to: 4.5
Stable tag: 2.73.1
Tested up to: 4.6
Stable tag: 2.73.2
Adds an AJAX poll system to your WordPress blog. You can also easily add a poll into your WordPress's blog post/page.
......@@ -27,6 +27,9 @@ WP-Polls is extremely customizable via templates and css styles and there are to
I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.
## Changelog
### Version 2.73.2
* FIXED: Change cron to hourly instead of twice daily.
### Version 2.73.1
* FIXED: Allow local IP
* FIXED: XSS on Poll bar option. Props [Netsparker Web Application Security Scanner](https://www.netsparker.com/)
......
......@@ -3,7 +3,7 @@
Plugin Name: WP-Polls
Plugin URI: https://lesterchan.net/portfolio/programming/php/
Description: Adds an AJAX poll system to your WordPress blog. You can easily include a poll into your WordPress's blog post/page. WP-Polls is extremely customizable via templates and css styles and there are tons of options for you to choose to ensure that WP-Polls runs the way you wanted. It now supports multiple selection of answers.
Version: 2.73.1
Version: 2.73.2
Author: Lester 'GaMerZ' Chan
Author URI: https://lesterchan.net
Text Domain: wp-polls
......@@ -30,7 +30,7 @@ Text Domain: wp-polls
### Version
define( 'WP_POLLS_VERSION', '2.73.1' );
define( 'WP_POLLS_VERSION', '2.73.2' );
### Create Text Domain For Translations
......@@ -1233,7 +1233,7 @@ function poll_timestamp($poll_timestamp, $fieldname = 'pollq_timestamp', $displa
function cron_polls_place() {
wp_clear_scheduled_hook('polls_cron');
if (!wp_next_scheduled('polls_cron')) {
wp_schedule_event(time(), 'twicedaily', 'polls_cron');
wp_schedule_event(time(), 'hourly', 'polls_cron');
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment