Advanced Automatic Updates - Version 0.4.1

Version Description

  • FIXED: Stop trying to update plugins and themes that are already updated
Download this release

Release Info

Developer pento
Plugin Icon wp plugin Advanced Automatic Updates
Version 0.4.1
Comparing to
See all releases

Code changes from version 0.4 to 0.4.1

Files changed (2) hide show
  1. automatic-updater.php +15 -1
  2. readme.txt +4 -1
automatic-updater.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: http://pento.net/projects/automatic-updater-for-wordpress/
5
  * Description: Automatically update your WordPress site, as soon as updates are released! Never worry about falling behing on updating again!
6
  * Author: pento
7
- * Version: 0.4
8
  * Author URI: http://pento.net/
9
  * License: GPL2+
10
  * Text Domain: automatic-updater
@@ -154,6 +154,13 @@ function auto_updater_plugins() {
154
  include_once( dirname( __FILE__ ) . '/updater-skin.php' );
155
 
156
  $plugins = apply_filters( 'auto_updater_plugin_updates', get_plugin_updates() );
 
 
 
 
 
 
 
157
  if ( empty( $plugins ) )
158
  return;
159
 
@@ -207,6 +214,13 @@ function auto_updater_themes() {
207
  include_once( dirname( __FILE__ ) . '/updater-skin.php' );
208
 
209
  $themes = apply_filters( 'auto_updater_theme_updates', get_theme_updates() );
 
 
 
 
 
 
 
210
  if ( empty( $themes ) )
211
  return;
212
 
4
  * Plugin URI: http://pento.net/projects/automatic-updater-for-wordpress/
5
  * Description: Automatically update your WordPress site, as soon as updates are released! Never worry about falling behing on updating again!
6
  * Author: pento
7
+ * Version: 0.4.1
8
  * Author URI: http://pento.net/
9
  * License: GPL2+
10
  * Text Domain: automatic-updater
154
  include_once( dirname( __FILE__ ) . '/updater-skin.php' );
155
 
156
  $plugins = apply_filters( 'auto_updater_plugin_updates', get_plugin_updates() );
157
+
158
+ // Remove any plugins from the list that may've already been updated
159
+ foreach ( $plugins as $id => $plugin ) {
160
+ if ( version_compare( $plugin->Version, $plugin->update->new_version, '>=' ) )
161
+ unset( $plugins[$id] );
162
+ }
163
+
164
  if ( empty( $plugins ) )
165
  return;
166
 
214
  include_once( dirname( __FILE__ ) . '/updater-skin.php' );
215
 
216
  $themes = apply_filters( 'auto_updater_theme_updates', get_theme_updates() );
217
+
218
+ // Remove any themes from the list that may've already been updated
219
+ foreach ( $themes as $id => $theme ) {
220
+ if ( version_compare( $theme->Version, $theme->update['new_version'], '>=' ) )
221
+ unset( $themes[$id] );
222
+ }
223
+
224
  if ( empty( $themes ) )
225
  return;
226
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://pento.net/donate/
4
  Tags: updates, core, plugins, themes, wordpress automatic upgrader
5
  Requires at least: 3.4
6
  Tested up to: 3.5
7
- Stable tag: 0.3.2
8
  License: GPL2+
9
 
10
  Automatically update WordPress, your themes and plugins! Never have to click the update button again!
@@ -41,6 +41,9 @@ There are some Actions and Filters provided, check the [Documentation](http://pe
41
 
42
  == Changelog ==
43
 
 
 
 
44
  = 0.4 =
45
  * ADDED: German translation. Props [Alexander Pfabel](http://alexander.pfabel.de/)
46
  * ADDED: Version check on activation, for compatibility
4
  Tags: updates, core, plugins, themes, wordpress automatic upgrader
5
  Requires at least: 3.4
6
  Tested up to: 3.5
7
+ Stable tag: 0.4
8
  License: GPL2+
9
 
10
  Automatically update WordPress, your themes and plugins! Never have to click the update button again!
41
 
42
  == Changelog ==
43
 
44
+ = 0.4.1 =
45
+ * FIXED: Stop trying to update plugins and themes that are already updated
46
+
47
  = 0.4 =
48
  * ADDED: German translation. Props [Alexander Pfabel](http://alexander.pfabel.de/)
49
  * ADDED: Version check on activation, for compatibility