WP Updates Notifier - Version 1.0.3

Version Description

  • When plugin was deactivated then reactivated the cron was not rescheduled unless the settings were saved. This has now been fixed.
Download this release

Release Info

Developer l3rady
Plugin Icon wp plugin WP Updates Notifier
Version 1.0.3
Comparing to
See all releases

Code changes from version 1.0.2 to 1.0.3

Files changed (2) hide show
  1. readme.txt +4 -1
  2. wp-updates-notifier.php +2 -2
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://l3rady.com/donate
4
  Tags: admin, theme, monitor, plugin, notification, upgrade, security
5
  Requires at least: 3.1
6
  Tested up to: 3.1.3
7
- Stable tag: 1.0.2
8
 
9
  Sends email to notify you if there are any updates for your WordPress site. Can notify about core, plugin and theme updates.
10
 
@@ -47,6 +47,9 @@ This plugin is a fork of [Update Notifier](http://wordpress.org/extend/plugins/u
47
 
48
  == Changelog ==
49
 
 
 
 
50
  = 1.0.2 =
51
  * Fixed plugin version
52
 
4
  Tags: admin, theme, monitor, plugin, notification, upgrade, security
5
  Requires at least: 3.1
6
  Tested up to: 3.1.3
7
+ Stable tag: 1.0.3
8
 
9
  Sends email to notify you if there are any updates for your WordPress site. Can notify about core, plugin and theme updates.
10
 
47
 
48
  == Changelog ==
49
 
50
+ = 1.0.3 =
51
+ * When plugin was deactivated then reactivated the cron was not rescheduled unless the settings were saved. This has now been fixed.
52
+
53
  = 1.0.2 =
54
  * Fixed plugin version
55
 
wp-updates-notifier.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Updates Notifier
4
  Plugin URI: http://l3rady.com/projects/wp-updates-notifier/
5
  Description: Sends email to notify you if there are any updates for your WordPress site. Can notify about core, plugin and theme updates.
6
  Author: Scott Cariss
7
- Version: 1.0.2
8
  Author URI: http://l3rady.com/
9
  */
10
 
@@ -121,7 +121,7 @@ if (!class_exists('sc_WPUpdatesNotifier')) {
121
  public function enable_cron($manual_interval = false) {
122
  $options = get_option(self::$options_field); // get current settings
123
  $currentSchedule = wp_get_schedule(self::$cron_name); // find if a schedule already exists
124
- if(false !== $manual_interval) {$options['frequency'] = $manual_interval;} // if a manual cron interval is set, use this
125
  if($currentSchedule != $options['frequency']) { // check if the current schedule matches the one set in settings
126
  if(in_array($options['frequency'], self::$frequency_intervals)) { // check the cron setting is valid
127
  do_action("sc_wpun_disable_cron"); // remove any crons for this plugin first so we don't end up with multiple crons doing the same thing.
4
  Plugin URI: http://l3rady.com/projects/wp-updates-notifier/
5
  Description: Sends email to notify you if there are any updates for your WordPress site. Can notify about core, plugin and theme updates.
6
  Author: Scott Cariss
7
+ Version: 1.0.3
8
  Author URI: http://l3rady.com/
9
  */
10
 
121
  public function enable_cron($manual_interval = false) {
122
  $options = get_option(self::$options_field); // get current settings
123
  $currentSchedule = wp_get_schedule(self::$cron_name); // find if a schedule already exists
124
+ if(!empty($manual_interval)) {$options['frequency'] = $manual_interval;} // if a manual cron interval is set, use this
125
  if($currentSchedule != $options['frequency']) { // check if the current schedule matches the one set in settings
126
  if(in_array($options['frequency'], self::$frequency_intervals)) { // check the cron setting is valid
127
  do_action("sc_wpun_disable_cron"); // remove any crons for this plugin first so we don't end up with multiple crons doing the same thing.