WP Updates Notifier - Version 1.3.2

Version Description

  • Added $wp_version globals ( Explains why WordPress Core Updates notifications haven't been working )
  • Added missed variable $cur_wp_version
Download this release

Release Info

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

Code changes from version 1.3.1 to 1.3.2

Files changed (2) hide show
  1. readme.txt +6 -2
  2. wp-updates-notifier.php +4 -1
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: l3rady
3
  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.3.2
7
- Stable tag: 1.3.1
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
 
@@ -52,6 +52,10 @@ This plugin is a fork of [Update Notifier](http://wordpress.org/extend/plugins/u
52
 
53
  == Changelog ==
54
 
 
 
 
 
55
  = 1.3.1 =
56
  * Fixed PHP Fatal error on line 175.
57
 
3
  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.4.2
7
+ Stable tag: 1.3.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
 
52
 
53
  == Changelog ==
54
 
55
+ = 1.3.2 =
56
+ * Added $wp_version globals ( Explains why WordPress Core Updates notifications haven't been working )
57
+ * Added missed variable $cur_wp_version
58
+
59
  = 1.3.1 =
60
  * Fixed PHP Fatal error on line 175.
61
 
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.3.1
8
  Author URI: http://l3rady.com/
9
  Text Domain: wp-updates-notifier
10
  Domain Path: /languages
@@ -198,6 +198,7 @@ if (!class_exists('sc_WPUpdatesNotifier')) {
198
  * @return bool
199
  */
200
  protected function core_update_check(&$message) {
 
201
  $settings = get_option(self::$options_field); // get settings
202
  do_action("wp_version_check"); // force WP to check its core for updates
203
  $update_core = get_site_transient("update_core"); // get information of updates
@@ -228,6 +229,8 @@ if (!class_exists('sc_WPUpdatesNotifier')) {
228
  * @return bool
229
  */
230
  protected function plugins_update_check(&$message, $allOrActive) {
 
 
231
  $settings = get_option(self::$options_field); // get settings
232
  do_action("wp_update_plugins"); // force WP to check plugins for updates
233
  $update_plugins = get_site_transient('update_plugins'); // get information of updates
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.3.2
8
  Author URI: http://l3rady.com/
9
  Text Domain: wp-updates-notifier
10
  Domain Path: /languages
198
  * @return bool
199
  */
200
  protected function core_update_check(&$message) {
201
+ global $wp_version;
202
  $settings = get_option(self::$options_field); // get settings
203
  do_action("wp_version_check"); // force WP to check its core for updates
204
  $update_core = get_site_transient("update_core"); // get information of updates
229
  * @return bool
230
  */
231
  protected function plugins_update_check(&$message, $allOrActive) {
232
+ global $wp_version;
233
+ $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
234
  $settings = get_option(self::$options_field); // get settings
235
  do_action("wp_update_plugins"); // force WP to check plugins for updates
236
  $update_plugins = get_site_transient('update_plugins'); // get information of updates