Version Description
- Fixed: Notifications settings not always updating
- Fixed: Notifications sending when nothing was updated
Download this release
Release Info
Developer | Papin |
Plugin | Companion Auto Update |
Version | 2.7.2 |
Comparing to | |
See all releases |
Code changes from version 2.7.0 to 2.7.2
- companion-auto-update-check-updates.php +2 -2
- companion-auto-update.php +26 -10
- readme.txt +24 -4
companion-auto-update-check-updates.php
CHANGED
@@ -19,7 +19,7 @@ function cau_check_updates_mail() {
|
|
19 |
if( $cau_configs[6]->onoroff == 'on' ) {
|
20 |
|
21 |
// Check for updated plugins
|
22 |
-
cau_plugin_updated();
|
23 |
|
24 |
}
|
25 |
|
@@ -123,7 +123,7 @@ function cau_plugin_updated() {
|
|
123 |
|
124 |
$today = date("Y-m-d");
|
125 |
$yesterday = date('Y-m-d',strtotime("-1 days"));
|
126 |
-
$updatedPlugins =
|
127 |
$updatedList = '';
|
128 |
$all_plugins = get_plugins();
|
129 |
|
19 |
if( $cau_configs[6]->onoroff == 'on' ) {
|
20 |
|
21 |
// Check for updated plugins
|
22 |
+
if( $cau_configs[0]->onoroff == 'on' ) cau_plugin_updated();
|
23 |
|
24 |
}
|
25 |
|
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 |
|
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
|
@@ -41,7 +41,7 @@ function cau_database_creation() {
|
|
41 |
global $wpdb;
|
42 |
global $cau_db_version;
|
43 |
|
44 |
-
$cau_db_version = '1.
|
45 |
|
46 |
// Create db table
|
47 |
$table_name = $wpdb->prefix . "auto_updates";
|
@@ -68,6 +68,23 @@ function cau_database_creation() {
|
|
68 |
|
69 |
}
|
70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
// Inset Data
|
72 |
function cau_install_data() {
|
73 |
|
@@ -76,16 +93,15 @@ function cau_install_data() {
|
|
76 |
$toemail = get_option('admin_email');
|
77 |
|
78 |
// Update configs
|
79 |
-
$wpdb->insert( $table_name, array( 'name' => 'plugins', 'onoroff' => 'on' ) );
|
80 |
-
$wpdb->insert( $table_name, array( 'name' => 'themes', 'onoroff' => 'on' ) );
|
81 |
-
$wpdb->insert( $table_name, array( 'name' => 'minor', 'onoroff' => 'on' ) );
|
82 |
-
$wpdb->insert( $table_name, array( 'name' => 'major', 'onoroff' => 'on' ) );
|
83 |
|
84 |
// Email configs
|
85 |
-
$wpdb->insert( $table_name, array( 'name' => 'email', 'onoroff' => '' ) );
|
86 |
-
$wpdb->insert( $table_name, array( 'name' => 'send', 'onoroff' => '' ) );
|
87 |
-
$wpdb->insert( $table_name, array( 'name' => 'sendupdate', 'onoroff' => '' ) );
|
88 |
-
|
89 |
|
90 |
}
|
91 |
register_activation_hook( __FILE__, 'cau_install' );
|
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.2
|
7 |
* Author: Qreative-Web
|
8 |
* Author URI: http://papinschipper.nl
|
9 |
* Contributors: papin
|
41 |
global $wpdb;
|
42 |
global $cau_db_version;
|
43 |
|
44 |
+
$cau_db_version = '1.3';
|
45 |
|
46 |
// Create db table
|
47 |
$table_name = $wpdb->prefix . "auto_updates";
|
68 |
|
69 |
}
|
70 |
|
71 |
+
// Check if database table exists before creating
|
72 |
+
function cau_check_if_exists( $whattocheck ) {
|
73 |
+
|
74 |
+
global $wpdb;
|
75 |
+
$table_name = $wpdb->prefix . "auto_updates";
|
76 |
+
|
77 |
+
$rows = $wpdb->get_col( "SELECT COUNT(*) as num_rows FROM $table_name WHERE name = '$whattocheck'" );
|
78 |
+
$check = $rows[0];
|
79 |
+
|
80 |
+
if( $check > 0) {
|
81 |
+
return true;
|
82 |
+
} else {
|
83 |
+
return false;
|
84 |
+
}
|
85 |
+
|
86 |
+
}
|
87 |
+
|
88 |
// Inset Data
|
89 |
function cau_install_data() {
|
90 |
|
93 |
$toemail = get_option('admin_email');
|
94 |
|
95 |
// Update configs
|
96 |
+
if( !cau_check_if_exists( 'plugins' ) ) $wpdb->insert( $table_name, array( 'name' => 'plugins', 'onoroff' => 'on' ) );
|
97 |
+
if( !cau_check_if_exists( 'themes' ) ) $wpdb->insert( $table_name, array( 'name' => 'themes', 'onoroff' => 'on' ) );
|
98 |
+
if( !cau_check_if_exists( 'minor' ) ) $wpdb->insert( $table_name, array( 'name' => 'minor', 'onoroff' => 'on' ) );
|
99 |
+
if( !cau_check_if_exists( 'major' ) ) $wpdb->insert( $table_name, array( 'name' => 'major', 'onoroff' => 'on' ) );
|
100 |
|
101 |
// Email configs
|
102 |
+
if( !cau_check_if_exists( 'email' ) ) $wpdb->insert( $table_name, array( 'name' => 'email', 'onoroff' => '' ) );
|
103 |
+
if( !cau_check_if_exists( 'send' ) ) $wpdb->insert( $table_name, array( 'name' => 'send', 'onoroff' => '' ) );
|
104 |
+
if( !cau_check_if_exists( 'sendupdate' ) ) $wpdb->insert( $table_name, array( 'name' => 'sendupdate', 'onoroff' => '' ) );
|
|
|
105 |
|
106 |
}
|
107 |
register_activation_hook( __FILE__, 'cau_install' );
|
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 |
|
@@ -17,17 +17,33 @@ We understand that you might not always be able to check if your wordpress site
|
|
17 |
This plugin enables background auto-updating for all plugins, all themes and the wordpress core (both major and minor updates).
|
18 |
We give you full control over what is updated and what isn't, via the settings page you can easily disallow auto-updating for either plugins, themes or wordpress core.
|
19 |
|
20 |
-
=
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
Email notifications are send once a day, right now two notifications are available:
|
22 |
-
|
23 |
-
|
|
|
24 |
|
25 |
== Installation ==
|
26 |
|
|
|
27 |
1. Download Companion Auto Update.
|
28 |
1. Upload the 'Companion Auto Update' directory to your '/wp-content/plugins/' directory.
|
29 |
1. Activate Companion Auto Update from your Plugins page.
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
== Screenshots ==
|
32 |
|
33 |
1. Easily configure what you'd like to auto-update and what not
|
@@ -35,6 +51,10 @@ Email notifications are send once a day, right now two notifications are availab
|
|
35 |
|
36 |
== Changelog ==
|
37 |
|
|
|
|
|
|
|
|
|
38 |
= 2.7.0 =
|
39 |
* Better updating: How ironic, this plugin did not handle it's own updates so well (required re-activation etc.) this has been fixed.
|
40 |
* Fixed bug: WordPress updates could not be disabled, this should work now.
|
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.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
17 |
This plugin enables background auto-updating for all plugins, all themes and the wordpress core (both major and minor updates).
|
18 |
We give you full control over what is updated and what isn't, via the settings page you can easily disallow auto-updating for either plugins, themes or wordpress core.
|
19 |
|
20 |
+
= Available settings =
|
21 |
+
1. Enable/disable updates for plugins (Enabled by default).
|
22 |
+
1. Enable/disable updates for themes (Enabled by default).
|
23 |
+
1. Enable/disable updates for minor WordPress updates (Enabled by default).
|
24 |
+
1. Enable/disable updates for major WordPress updates (Enabled by default).
|
25 |
+
|
26 |
+
= Email Notifications (Disabled by default) =
|
27 |
Email notifications are send once a day, right now two notifications are available:
|
28 |
+
|
29 |
+
1. Update Available: Sends an email when an update is available and you've disabled auto-updates
|
30 |
+
1. Successful Update: Sends an email when something has been updated (only works for plugins right now)
|
31 |
|
32 |
== Installation ==
|
33 |
|
34 |
+
= Manual install =
|
35 |
1. Download Companion Auto Update.
|
36 |
1. Upload the 'Companion Auto Update' directory to your '/wp-content/plugins/' directory.
|
37 |
1. Activate Companion Auto Update from your Plugins page.
|
38 |
|
39 |
+
= Via WordPress =
|
40 |
+
1. Search for 'Companion Auto Update'.
|
41 |
+
1. Click install.
|
42 |
+
1. Activate.
|
43 |
+
|
44 |
+
= Settings =
|
45 |
+
1. Configure this plugin via Tools > Auto updater.
|
46 |
+
|
47 |
== Screenshots ==
|
48 |
|
49 |
1. Easily configure what you'd like to auto-update and what not
|
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.
|
60 |
* Fixed bug: WordPress updates could not be disabled, this should work now.
|