Advanced Automatic Updates - Version 0.3.1

Version Description

  • FIXED: Don't try to update WordPress to the same version (harmless, but unnecessary)
  • FIXED: A PHP warning in the Settings page
  • FIXED: A couple of typos
Download this release

Release Info

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

Code changes from version 0.3 to 0.3.1

Files changed (3) hide show
  1. admin.php +2 -2
  2. automatic-updater.php +7 -3
  3. readme.txt +6 -1
admin.php CHANGED
@@ -65,11 +65,11 @@ function auto_updater_settings() {
65
  }
66
 
67
  $checked = '';
68
- if ( $option['debug'] )
69
  $checked = ' checked="checked"';
70
  ?>
71
  <br/><br/>
72
- <p input type="checkbox" id="debug" name="debug" value="1"<?php echo $checked; ?>> <label for="debug"><?php _e( 'Show debug inforamtion in the notification email.', 'automatic-updater' ); ?></label></p>
73
  <p><input class="button button-primary" type="submit" name="submit" id="submit" value="<?php esc_attr_e( 'Save Changes', 'automatic-updater' ); ?>" /></p>
74
  </form>
75
  </div>
65
  }
66
 
67
  $checked = '';
68
+ if ( $options['debug'] )
69
  $checked = ' checked="checked"';
70
  ?>
71
  <br/><br/>
72
+ <p><input type="checkbox" id="debug" name="debug" value="1"<?php echo $checked; ?>> <label for="debug"><?php _e( 'Show debug information in the notification email.', 'automatic-updater' ); ?></label></p>
73
  <p><input class="button button-primary" type="submit" name="submit" id="submit" value="<?php esc_attr_e( 'Save Changes', 'automatic-updater' ); ?>" /></p>
74
  </form>
75
  </div>
automatic-updater.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
3
  * Plugin Name: Automatic Updater
4
- * Plugin URI: http://pento.net/
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.3
8
- * Author URI: http://pento.net
9
  * License: GPL2+
10
  * Text Domain: automatic-updater
11
  * Domain Path: /languages/
@@ -85,6 +85,10 @@ function auto_updater_core() {
85
  if ( empty( $update ) )
86
  return;
87
 
 
 
 
 
88
  $old_version = get_bloginfo( 'version' );
89
 
90
  $auto_updater_running = true;
1
  <?php
2
  /*
3
  * Plugin Name: Automatic Updater
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.3.1
8
+ * Author URI: http://pento.net/
9
  * License: GPL2+
10
  * Text Domain: automatic-updater
11
  * Domain Path: /languages/
85
  if ( empty( $update ) )
86
  return;
87
 
88
+ // Don't try to update if we somehow got the same or older version
89
+ if ( version_compare( $old_version, $update->current, '>=' ) )
90
+ return;
91
+
92
  $old_version = get_bloginfo( 'version' );
93
 
94
  $auto_updater_running = true;
readme.txt CHANGED
@@ -1,7 +1,7 @@
1
  === Automatic Updater ===
2
  Contributors: pento
3
  Donate link: http://pento.net/donate/
4
- Tags: updates, core, plugins, themes
5
  Requires at least: 3.3
6
  Tested up to: 3.5
7
  Stable tag: 0.3
@@ -40,6 +40,11 @@ There are some Actions and Filters provided, check the [Documentation](http://pe
40
 
41
  == Changelog ==
42
 
 
 
 
 
 
43
  = 0.3 =
44
  * ADDED: Extra update checks, updates will now occur as soon as is humanly possible
45
  * ADDED: Much nicer notification emails when upgrades occur
1
  === Automatic Updater ===
2
  Contributors: pento
3
  Donate link: http://pento.net/donate/
4
+ Tags: updates, core, plugins, themes, wordpress automatic upgrader
5
  Requires at least: 3.3
6
  Tested up to: 3.5
7
  Stable tag: 0.3
40
 
41
  == Changelog ==
42
 
43
+ = 0.3.1 =
44
+ * FIXED: Don't try to update WordPress to the same version (harmless, but unnecessary)
45
+ * FIXED: A PHP warning in the Settings page
46
+ * FIXED: A couple of typos
47
+
48
  = 0.3 =
49
  * ADDED: Extra update checks, updates will now occur as soon as is humanly possible
50
  * ADDED: Much nicer notification emails when upgrades occur