Companion Auto Update - Version 2.7.4

Version Description

  • Fixed: Double e-mail notifications Read support topic here
Download this release

Release Info

Developer Papin
Plugin Icon 128x128 Companion Auto Update
Version 2.7.4
Comparing to
See all releases

Code changes from version 2.7.3 to 2.7.4

companion-auto-update-check-updates.php CHANGED
@@ -126,7 +126,7 @@ function cau_plugin_updated() {
126
  $updatedList = '';
127
  $all_plugins = get_plugins();
128
 
129
- $updatedPlugins = false; // Remove if not needed
130
 
131
  foreach ( $all_plugins as $key => $value ) {
132
 
@@ -143,25 +143,27 @@ function cau_plugin_updated() {
143
  $last_updated = explode( ' ', $last_updated );
144
  $last_updated = $last_updated[0];
145
 
 
 
146
  if( $last_updated == $today OR $last_updated == $yesterday ) {
147
  foreach ( $value as $k => $v ) {
148
  if( $k == "Name" ) $updatedList .= "- ".$v;
149
  if( $k == "Version" ) $updatedList .= " ".__("to version:")." ".$v."\n";
150
  }
151
 
152
- $updatedPlugins = true; // Remove if not needed
153
-
154
  $subject = __('One ore more plugins have been updated.', 'companion-auto-update');
155
  $type = __('plugins', 'companion-auto-update');
156
  $message = cau_updated_message( $type, "\n".$updatedList );
157
 
158
- wp_mail( cau_set_email() , $subject, $message, $headers );
159
-
160
  }
161
  }
162
 
163
  }
164
 
 
 
 
 
165
  }
166
 
167
  // Do some high-tech stuff
126
  $updatedList = '';
127
  $all_plugins = get_plugins();
128
 
129
+ $updatedPlugins = false;
130
 
131
  foreach ( $all_plugins as $key => $value ) {
132
 
143
  $last_updated = explode( ' ', $last_updated );
144
  $last_updated = $last_updated[0];
145
 
146
+ $updatedPlugins = true;
147
+
148
  if( $last_updated == $today OR $last_updated == $yesterday ) {
149
  foreach ( $value as $k => $v ) {
150
  if( $k == "Name" ) $updatedList .= "- ".$v;
151
  if( $k == "Version" ) $updatedList .= " ".__("to version:")." ".$v."\n";
152
  }
153
 
 
 
154
  $subject = __('One ore more plugins have been updated.', 'companion-auto-update');
155
  $type = __('plugins', 'companion-auto-update');
156
  $message = cau_updated_message( $type, "\n".$updatedList );
157
 
 
 
158
  }
159
  }
160
 
161
  }
162
 
163
+ if( $updatedPlugins ) {
164
+ wp_mail( cau_set_email() , $subject, $message, $headers );
165
+ }
166
+
167
  }
168
 
169
  // Do some high-tech stuff
companion-auto-update.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Companion Auto Update
4
  * Plugin URI: https://qreative-web.com
5
  * Description: This plugin auto updates all plugins, all themes and the wordpress core.
6
- * Version: 2.7.3
7
  * Author: Qreative-Web
8
  * Author URI: http://papinschipper.nl
9
  * Contributors: papin
3
  * Plugin Name: Companion Auto Update
4
  * Plugin URI: https://qreative-web.com
5
  * Description: This plugin auto updates all plugins, all themes and the wordpress core.
6
+ * Version: 2.7.4
7
  * Author: Qreative-Web
8
  * Author URI: http://papinschipper.nl
9
  * Contributors: papin
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Papin
3
  Donate link: https://www.paypal.me/dakel/1
4
  Tags: auto, automatic, background, update, updates, updating, automatic updates, automatic background updates, easy update, wordpress update, theme update, plugin update, up-to-date, security, update latest version, update core, update wp, update wp core, major updates, minor updates, update to new version, update core, update plugin, update plugins, update plugins automatically, update theme, plugin, theme, advance, control, mail, notifations, enable
5
  Requires at least: 3.5.0
6
- Tested up to: 4.6
7
- Stable tag: 2.7.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -51,6 +51,9 @@ Email notifications are send once a day, right now two notifications are availab
51
 
52
  == Changelog ==
53
 
 
 
 
54
  = 2.7.3 =
55
  * Fixed: Notifications sending when nothing was updated
56
 
3
  Donate link: https://www.paypal.me/dakel/1
4
  Tags: auto, automatic, background, update, updates, updating, automatic updates, automatic background updates, easy update, wordpress update, theme update, plugin update, up-to-date, security, update latest version, update core, update wp, update wp core, major updates, minor updates, update to new version, update core, update plugin, update plugins, update plugins automatically, update theme, plugin, theme, advance, control, mail, notifations, enable
5
  Requires at least: 3.5.0
6
+ Tested up to: 4.7
7
+ Stable tag: 2.7.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
51
 
52
  == Changelog ==
53
 
54
+ = 2.7.4 =
55
+ * Fixed: Double e-mail notifications [Read support topic here](https://wordpress.org/support/topic/double-e-mail-notifications/)
56
+
57
  = 2.7.3 =
58
  * Fixed: Notifications sending when nothing was updated
59