Advanced Automatic Updates - Version 1.0.2

Version Description

  • ADDED: Strictly disallow activation on versions of WordPress earlier than 3.7
  • CHANGED: Update filter name for redirecting debug emails (only available in WordPress 3.8+)
Download this release

Release Info

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

Code changes from version 1.0.1 to 1.0.2

Files changed (2) hide show
  1. automatic-updater.php +11 -2
  2. readme.txt +6 -2
automatic-updater.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: http://pento.net/projects/automatic-updater-for-wordpress/
5
  * Description: Adds extra options to WordPress' built-in Automatic Updates feature.
6
  * Author: pento
7
- * Version: 1.0.1
8
  * Author URI: http://pento.net/
9
  * License: GPL2+
10
  * Text Domain: automatic-updater
@@ -96,7 +96,7 @@ class Automatic_Updater {
96
 
97
  if ( ! empty( $this->options['override-email'] ) ) {
98
  add_filter( 'auto_core_update_email', array( $this, 'override_update_email' ), 1, 1 );
99
- add_filter( 'auto_update_debug_email', array( $this, 'override_update_email' ), 1, 1 );
100
  }
101
 
102
  // Default is to send the debug email with dev builds, so we don't need to filter for that
@@ -138,6 +138,13 @@ class Automatic_Updater {
138
  return null;
139
  }
140
 
 
 
 
 
 
 
 
141
  function check_wordpress_version() {
142
  if ( version_compare( $GLOBALS['wp_version'], '3.7', '<' ) ) {
143
  if ( is_plugin_active( self::$basename ) ) {
@@ -512,3 +519,5 @@ class Automatic_Updater {
512
  }
513
 
514
  add_action( 'init', array( 'Automatic_Updater', 'init' ) );
 
 
4
  * Plugin URI: http://pento.net/projects/automatic-updater-for-wordpress/
5
  * Description: Adds extra options to WordPress' built-in Automatic Updates feature.
6
  * Author: pento
7
+ * Version: 1.0.2
8
  * Author URI: http://pento.net/
9
  * License: GPL2+
10
  * Text Domain: automatic-updater
96
 
97
  if ( ! empty( $this->options['override-email'] ) ) {
98
  add_filter( 'auto_core_update_email', array( $this, 'override_update_email' ), 1, 1 );
99
+ add_filter( 'automatic_updates_debug_email', array( $this, 'override_update_email' ), 1, 1 );
100
  }
101
 
102
  // Default is to send the debug email with dev builds, so we don't need to filter for that
138
  return null;
139
  }
140
 
141
+ static function activation_check() {
142
+ if ( version_compare( $GLOBALS['wp_version'], '3.7', '<' ) ) {
143
+ deactivate_plugins( self::$basename );
144
+ wp_die( __( 'Automatic Updater requires WordPress 3.7 or higher! Please upgrade WordPress manually, then reactivate Automatic Updater.' ), '', array( 'back_link' => true ) );
145
+ }
146
+ }
147
+
148
  function check_wordpress_version() {
149
  if ( version_compare( $GLOBALS['wp_version'], '3.7', '<' ) ) {
150
  if ( is_plugin_active( self::$basename ) ) {
519
  }
520
 
521
  add_action( 'init', array( 'Automatic_Updater', 'init' ) );
522
+
523
+ register_activation_hook( __FILE__, array( 'Automatic_Updater', 'activation_check' ) );
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: pento
3
  Donate link: http://pento.net/donate/
4
  Tags: updates, core, plugins, themes, stable, nightly, svn, wordpress automatic upgrader
5
  Requires at least: 3.7
6
- Tested up to: 3.8
7
- Stable tag: 1.0
8
  License: GPL2+
9
 
10
  Adds extra options to WordPress' built-in Automatic Updates feature.
@@ -45,6 +45,10 @@ The debug email doesn't provide a filter to allow changing the email address it'
45
 
46
  == Changelog ==
47
 
 
 
 
 
48
  = 1.0.1 =
49
  * CHANGED: Fresh installs now disable Major updates by default, to match Core behaviour
50
  * UPDATED: German (de_DE) translation. Props [Alexander Pfabel](http://alexander.pfabel.de/)
3
  Donate link: http://pento.net/donate/
4
  Tags: updates, core, plugins, themes, stable, nightly, svn, wordpress automatic upgrader
5
  Requires at least: 3.7
6
+ Tested up to: 4.4
7
+ Stable tag: 1.0.1
8
  License: GPL2+
9
 
10
  Adds extra options to WordPress' built-in Automatic Updates feature.
45
 
46
  == Changelog ==
47
 
48
+ = 1.0.2 =
49
+ * ADDED: Strictly disallow activation on versions of WordPress earlier than 3.7
50
+ * CHANGED: Update filter name for redirecting debug emails (only available in WordPress 3.8+)
51
+
52
  = 1.0.1 =
53
  * CHANGED: Fresh installs now disable Major updates by default, to match Core behaviour
54
  * UPDATED: German (de_DE) translation. Props [Alexander Pfabel](http://alexander.pfabel.de/)