Version Description
- Fixed: Notifications sending when nothing was updated
Download this release
Release Info
Developer | Papin |
Plugin | Companion Auto Update |
Version | 2.7.3 |
Comparing to | |
See all releases |
Code changes from version 2.7.2 to 2.7.3
- companion-auto-update-check-updates.php +9 -10
- companion-auto-update.php +1 -1
- readme.txt +4 -2
companion-auto-update-check-updates.php
CHANGED
@@ -123,10 +123,11 @@ function cau_plugin_updated() {
|
|
123 |
|
124 |
$today = date("Y-m-d");
|
125 |
$yesterday = date('Y-m-d',strtotime("-1 days"));
|
126 |
-
$updatedPlugins = 0;
|
127 |
$updatedList = '';
|
128 |
$all_plugins = get_plugins();
|
129 |
|
|
|
|
|
130 |
foreach ( $all_plugins as $key => $value ) {
|
131 |
|
132 |
$slug = explode( '/', $key );
|
@@ -147,19 +148,17 @@ function cau_plugin_updated() {
|
|
147 |
if( $k == "Name" ) $updatedList .= "- ".$v;
|
148 |
if( $k == "Version" ) $updatedList .= " ".__("to version:")." ".$v."\n";
|
149 |
}
|
150 |
-
$updatedPlugins = 1;
|
151 |
-
}
|
152 |
-
}
|
153 |
|
154 |
-
|
155 |
|
156 |
-
|
|
|
|
|
157 |
|
158 |
-
|
159 |
-
$type = __('plugins', 'companion-auto-update');
|
160 |
-
$message = cau_updated_message( $type, "\n".$updatedList );
|
161 |
|
162 |
-
|
|
|
163 |
|
164 |
}
|
165 |
|
123 |
|
124 |
$today = date("Y-m-d");
|
125 |
$yesterday = date('Y-m-d',strtotime("-1 days"));
|
|
|
126 |
$updatedList = '';
|
127 |
$all_plugins = get_plugins();
|
128 |
|
129 |
+
$updatedPlugins = false; // Remove if not needed
|
130 |
+
|
131 |
foreach ( $all_plugins as $key => $value ) {
|
132 |
|
133 |
$slug = explode( '/', $key );
|
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 |
|
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.
|
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.3
|
7 |
* Author: Qreative-Web
|
8 |
* Author URI: http://papinschipper.nl
|
9 |
* Contributors: papin
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -51,9 +51,11 @@ Email notifications are send once a day, right now two notifications are availab
|
|
51 |
|
52 |
== Changelog ==
|
53 |
|
|
|
|
|
|
|
54 |
= 2.7.2 =
|
55 |
* Fixed: Notifications settings not always updating
|
56 |
-
* Fixed: Notifications sending when nothing was updated
|
57 |
|
58 |
= 2.7.0 =
|
59 |
* Better updating: How ironic, this plugin did not handle it's own updates so well (required re-activation etc.) this has been fixed.
|
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 |
|
52 |
== Changelog ==
|
53 |
|
54 |
+
= 2.7.3 =
|
55 |
+
* Fixed: Notifications sending when nothing was updated
|
56 |
+
|
57 |
= 2.7.2 =
|
58 |
* Fixed: Notifications settings not always updating
|
|
|
59 |
|
60 |
= 2.7.0 =
|
61 |
* Better updating: How ironic, this plugin did not handle it's own updates so well (required re-activation etc.) this has been fixed.
|