Companion Auto Update - Version 3.4.8

Version Description

(January 2, 2020) = * This update brings a few under the hood changes to ensure better updates in the future * We've also fixed a (rare) Undefined variable: headers error

Download this release

Release Info

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

Code changes from version 3.4.7 to 3.4.8

admin/dashboard.php CHANGED
@@ -16,15 +16,15 @@
16
  global $wpdb;
17
  $table_name = $wpdb->prefix . "auto_updates";
18
 
19
- if( isset( $_POST['plugins'] ) ) $plugins = sanitize_text_field( $_POST['plugins'] ); else $plugins = '';
20
- if( isset( $_POST['themes'] ) ) $themes = sanitize_text_field( $_POST['themes'] ); else $themes = '';
21
- if( isset( $_POST['minor'] ) ) $minor = sanitize_text_field( $_POST['minor'] ); else $minor = '';
22
- if( isset( $_POST['major'] ) ) $major = sanitize_text_field( $_POST['major'] ); else $major = '';
23
- if( isset( $_POST['translations'] ) ) $translations = sanitize_text_field( $_POST['translations'] ); else $translations = '';
24
- if( isset( $_POST['cau_send'] ) ) $send = sanitize_text_field( $_POST['cau_send'] ); else $send = '';
25
- if( isset( $_POST['cau_send_update'] ) ) $sendupdate = sanitize_text_field( $_POST['cau_send_update'] ); else $sendupdate = '';
26
- if( isset( $_POST['wpemails'] ) ) $wpemails = sanitize_text_field( $_POST['wpemails'] ); else $wpemails = '';
27
- $email = sanitize_text_field( $_POST['cau_email'] );
28
 
29
  $wpdb->query( $wpdb->prepare( "UPDATE $table_name SET onoroff = %s WHERE name = 'plugins'", $plugins ) );
30
  $wpdb->query( $wpdb->prepare( "UPDATE $table_name SET onoroff = %s WHERE name = 'themes'", $themes ) );
@@ -44,7 +44,7 @@
44
 
45
  echo '<div class="welcome-to-cau welcome-bg welcome-panel">
46
  <h2>'.__( 'Welcome to Companion Auto Update', 'companion-auto-update' ).'</h2>
47
- <div class="welcome-column welcome-column-first welcome-column-half">
48
  <h3>'.__( 'You\'re set and ready to go', 'companion-auto-update' ).'</h3>
49
  <p>'.__( 'The plugin is all set and ready to go with the recommended settings, but if you\'d like you can change them below.' ).'</p>
50
  </div><div class="welcome-column welcome-column-quarter">
@@ -78,32 +78,25 @@
78
 
79
  <?php
80
 
81
- global $wpdb;
82
- $table_name = $wpdb->prefix . "auto_updates";
 
83
 
84
- $cau_configs = $wpdb->get_results( "SELECT * FROM $table_name" );
 
 
85
 
86
- echo '<p><input id="'.$cau_configs[0]->name.'" name="'.$cau_configs[0]->name.'" type="checkbox"';
87
- if( $cau_configs[0]->onoroff == 'on' ) echo 'checked';
88
- echo '/> <label for="'.$cau_configs[0]->name.'">'.__('Auto update plugins?', 'companion-auto-update').'</label></p>';
89
 
90
- echo '<p><input id="'.$cau_configs[1]->name.'" name="'.$cau_configs[1]->name.'" type="checkbox"';
91
- if( $cau_configs[1]->onoroff == 'on' ) echo 'checked';
92
- echo '/> <label for="'.$cau_configs[1]->name.'">'.__('Auto update themes?', 'companion-auto-update').'</label></p>';
93
 
94
-
95
- echo '<p><input id="'.$cau_configs[2]->name.'" name="'.$cau_configs[2]->name.'" type="checkbox"';
96
- if( $cau_configs[2]->onoroff == 'on' ) echo 'checked';
97
- echo '/> <label for="'.$cau_configs[2]->name.'">'.__('Auto update minor core updates?', 'companion-auto-update').' <code class="majorMinorExplain">5.3.0 > 5.3.1</code></label></p>';
98
-
99
-
100
- echo '<p><input id="'.$cau_configs[3]->name.'" name="'.$cau_configs[3]->name.'" type="checkbox"';
101
- if( $cau_configs[3]->onoroff == 'on' ) echo 'checked';
102
- echo '/> <label for="'.$cau_configs[3]->name.'">'.__('Auto update major core updates?', 'companion-auto-update').' <code class="majorMinorExplain">5.3.0 > 5.4.0</code></label></p>';
103
-
104
- echo '<p><input id="'.$cau_configs[8]->name.'" name="'.$cau_configs[8]->name.'" type="checkbox"';
105
- if( $cau_configs[8]->onoroff == 'on' ) echo 'checked';
106
- echo '/> <label for="'.$cau_configs[8]->name.'">'.__('Auto update translation files?', 'companion-auto-update').'</label></p>';
107
 
108
  ?>
109
 
@@ -118,8 +111,8 @@
118
  <p><?php _e( 'Email notifications are send once a day, you can choose what notifications to send below.', 'companion-auto-update' );?></p>
119
 
120
  <?php
121
- if( $cau_configs[4]->onoroff == '' ) $toemail = get_option('admin_email');
122
- else $toemail = $cau_configs[4]->onoroff;
123
  ?>
124
 
125
  <table class="form-table">
@@ -127,7 +120,7 @@
127
  <th scope="row"><?php _e( 'Update available', 'companion-auto-update' );?></th>
128
  <td>
129
  <p>
130
- <input id="cau_send" name="cau_send" type="checkbox" <?php if( $cau_configs[5]->onoroff == 'on' ) { echo 'checked'; } ?> />
131
  <label for="cau_send"><?php _e('Send me emails when an update is available.', 'companion-auto-update');?></label>
132
  </p>
133
  </td>
@@ -136,7 +129,7 @@
136
  <th scope="row"><?php _e( 'Successful update', 'companion-auto-update' );?></th>
137
  <td>
138
  <p>
139
- <input id="cau_send_update" name="cau_send_update" type="checkbox" <?php if( $cau_configs[6]->onoroff == 'on' ) { echo 'checked'; } ?> />
140
  <label for="cau_send_update"><?php _e('Send me emails when something has been updated.', 'companion-auto-update');?></label>
141
  </p>
142
  </td>
@@ -164,7 +157,7 @@
164
  <th scope="row"><?php _e('Core notifications', 'companion-auto-update');?></th>
165
  <td>
166
  <p>
167
- <input id="wpemails" name="wpemails" type="checkbox" <?php if( $cau_configs[9]->onoroff == 'on' ) { echo 'checked'; } ?> />
168
  <label for="wpemails"><?php _e( 'By default WordPress sends an email when a core update has occurred. Uncheck this box to disable these emails.', 'companion-auto-update' );?></label>
169
  </p>
170
  </td>
16
  global $wpdb;
17
  $table_name = $wpdb->prefix . "auto_updates";
18
 
19
+ if( isset( $_POST['plugins'] ) ) $plugins = sanitize_text_field( $_POST['plugins'] ); else $plugins = '';
20
+ if( isset( $_POST['themes'] ) ) $themes = sanitize_text_field( $_POST['themes'] ); else $themes = '';
21
+ if( isset( $_POST['minor'] ) ) $minor = sanitize_text_field( $_POST['minor'] ); else $minor = '';
22
+ if( isset( $_POST['major'] ) ) $major = sanitize_text_field( $_POST['major'] ); else $major = '';
23
+ if( isset( $_POST['translations'] ) ) $translations = sanitize_text_field( $_POST['translations'] ); else $translations = '';
24
+ if( isset( $_POST['cau_send'] ) ) $send = sanitize_text_field( $_POST['cau_send'] ); else $send = '';
25
+ if( isset( $_POST['cau_send_update'] ) ) $sendupdate = sanitize_text_field( $_POST['cau_send_update'] ); else $sendupdate = '';
26
+ if( isset( $_POST['wpemails'] ) ) $wpemails = sanitize_text_field( $_POST['wpemails'] ); else $wpemails = '';
27
+ $email = sanitize_text_field( $_POST['cau_email'] );
28
 
29
  $wpdb->query( $wpdb->prepare( "UPDATE $table_name SET onoroff = %s WHERE name = 'plugins'", $plugins ) );
30
  $wpdb->query( $wpdb->prepare( "UPDATE $table_name SET onoroff = %s WHERE name = 'themes'", $themes ) );
44
 
45
  echo '<div class="welcome-to-cau welcome-bg welcome-panel">
46
  <h2>'.__( 'Welcome to Companion Auto Update', 'companion-auto-update' ).'</h2>
47
+ <div class="welcome-column first-column welcome-column-half">
48
  <h3>'.__( 'You\'re set and ready to go', 'companion-auto-update' ).'</h3>
49
  <p>'.__( 'The plugin is all set and ready to go with the recommended settings, but if you\'d like you can change them below.' ).'</p>
50
  </div><div class="welcome-column welcome-column-quarter">
78
 
79
  <?php
80
 
81
+ echo '<p><input id="plugins" name="plugins" type="checkbox"';
82
+ if( cau_get_db_value( 'plugins' ) == 'on' ) echo 'checked';
83
+ echo '/> <label for="plugins">'.__('Auto update plugins?', 'companion-auto-update').'</label></p>';
84
 
85
+ echo '<p><input id="themes" name="themes" type="checkbox"';
86
+ if( cau_get_db_value( 'themes' ) == 'on' ) echo 'checked';
87
+ echo '/> <label for="themes">'.__('Auto update themes?', 'companion-auto-update').'</label></p>';
88
 
89
+ echo '<p><input id="minor" name="minor" type="checkbox"';
90
+ if( cau_get_db_value( 'minor' ) == 'on' ) echo 'checked';
91
+ echo '/> <label for="minor">'.__('Auto update minor core updates?', 'companion-auto-update').' <code class="majorMinorExplain">5.3.0 > 5.3.1</code></label></p>';
92
 
93
+ echo '<p><input id="major" name="major" type="checkbox"';
94
+ if( cau_get_db_value( 'major' ) == 'on' ) echo 'checked';
95
+ echo '/> <label for="major">'.__('Auto update major core updates?', 'companion-auto-update').' <code class="majorMinorExplain">5.3.0 > 5.4.0</code></label></p>';
96
 
97
+ echo '<p><input id="translations" name="translations" type="checkbox"';
98
+ if( cau_get_db_value( 'translations' ) == 'on' ) echo 'checked';
99
+ echo '/> <label for="translations">'.__('Auto update translation files?', 'companion-auto-update').'</label></p>';
 
 
 
 
 
 
 
 
 
 
100
 
101
  ?>
102
 
111
  <p><?php _e( 'Email notifications are send once a day, you can choose what notifications to send below.', 'companion-auto-update' );?></p>
112
 
113
  <?php
114
+ if( cau_get_db_value( 'email' ) == '' ) $toemail = get_option('admin_email');
115
+ else $toemail = cau_get_db_value( 'email' );
116
  ?>
117
 
118
  <table class="form-table">
120
  <th scope="row"><?php _e( 'Update available', 'companion-auto-update' );?></th>
121
  <td>
122
  <p>
123
+ <input id="cau_send" name="cau_send" type="checkbox" <?php if( cau_get_db_value( 'send' ) == 'on' ) { echo 'checked'; } ?> />
124
  <label for="cau_send"><?php _e('Send me emails when an update is available.', 'companion-auto-update');?></label>
125
  </p>
126
  </td>
129
  <th scope="row"><?php _e( 'Successful update', 'companion-auto-update' );?></th>
130
  <td>
131
  <p>
132
+ <input id="cau_send_update" name="cau_send_update" type="checkbox" <?php if( cau_get_db_value( 'sendupdate' ) == 'on' ) { echo 'checked'; } ?> />
133
  <label for="cau_send_update"><?php _e('Send me emails when something has been updated.', 'companion-auto-update');?></label>
134
  </p>
135
  </td>
157
  <th scope="row"><?php _e('Core notifications', 'companion-auto-update');?></th>
158
  <td>
159
  <p>
160
+ <input id="wpemails" name="wpemails" type="checkbox" <?php if( cau_get_db_value( 'wpemails' ) == 'on' ) { echo 'checked'; } ?> />
161
  <label for="wpemails"><?php _e( 'By default WordPress sends an email when a core update has occurred. Uncheck this box to disable these emails.', 'companion-auto-update' );?></label>
162
  </p>
163
  </td>
admin/support.php CHANGED
@@ -1,5 +1,5 @@
1
  <div class="welcome-to-cau support-bg welcome-panel">
2
- <div class="welcome-column welcome-column-first">
3
  <div class="welcome-column welcome-column welcome-column-third">
4
  <h3><?php _e( 'Help' ); ?></h3>
5
  <ul>
@@ -23,7 +23,7 @@
23
  </div>
24
 
25
  <div class="welcome-to-cau welcome-bg welcome-panel">
26
- <div class="welcome-column welcome-column-first welcome-column welcome-column-half">
27
  <h3><?php _e('Support', 'companion-auto-update');?></h3>
28
  <p><?php _e('Feel free to reach out to us if you have any questions or feedback.', 'companion-auto-update'); ?></p>
29
  <a href="https://codeermeneer.nl/contact/" target="_blank" class="button"><?php _e( 'Contact us', 'companion-auto-update' ); ?></a>
@@ -34,7 +34,7 @@
34
  </div>
35
 
36
  <div class="welcome-to-cau love-bg cau-show-love welcome-panel">
37
- <div class="welcome-column welcome-column-first ">
38
  <div class="welcome-column welcome-column-half">
39
  <h3><?php _e( 'Like our plugin?', 'companion-auto-update' ); ?></h3>
40
  <p><?php _e('Companion Auto Update is free to use. It has required a great deal of time and effort to develop and you can help support this development by making a small donation.<br />You get useful software and we get to carry on making it better.', 'companion-auto-update'); ?></p>
1
  <div class="welcome-to-cau support-bg welcome-panel">
2
+ <div class="welcome-column welcome-column-first first-column">
3
  <div class="welcome-column welcome-column welcome-column-third">
4
  <h3><?php _e( 'Help' ); ?></h3>
5
  <ul>
23
  </div>
24
 
25
  <div class="welcome-to-cau welcome-bg welcome-panel">
26
+ <div class="welcome-column first-column welcome-column welcome-column-half">
27
  <h3><?php _e('Support', 'companion-auto-update');?></h3>
28
  <p><?php _e('Feel free to reach out to us if you have any questions or feedback.', 'companion-auto-update'); ?></p>
29
  <a href="https://codeermeneer.nl/contact/" target="_blank" class="button"><?php _e( 'Contact us', 'companion-auto-update' ); ?></a>
34
  </div>
35
 
36
  <div class="welcome-to-cau love-bg cau-show-love welcome-panel">
37
+ <div class="welcome-column first-column">
38
  <div class="welcome-column welcome-column-half">
39
  <h3><?php _e( 'Like our plugin?', 'companion-auto-update' ); ?></h3>
40
  <p><?php _e('Companion Auto Update is free to use. It has required a great deal of time and effort to develop and you can help support this development by making a small donation.<br />You get useful software and we get to carry on making it better.', 'companion-auto-update'); ?></p>
backend/style.css CHANGED
@@ -44,6 +44,7 @@
44
  .welcome-to-cau .welcome-column {
45
  display: inline-block;
46
  vertical-align: top;
 
47
  }
48
  .welcome-to-cau.cau-show-love .welcome-column {
49
  vertical-align: middle;
@@ -51,8 +52,9 @@
51
  .welcome-to-cau .welcome-column.welcome-column-first {
52
  display: block;
53
  width: 100%;
 
 
54
  padding-left: 140px;
55
- box-sizing: border-box;
56
  }
57
  .welcome-to-cau .welcome-column.welcome-column-half {
58
  width: 50%;
44
  .welcome-to-cau .welcome-column {
45
  display: inline-block;
46
  vertical-align: top;
47
+ box-sizing: border-box;
48
  }
49
  .welcome-to-cau.cau-show-love .welcome-column {
50
  vertical-align: middle;
52
  .welcome-to-cau .welcome-column.welcome-column-first {
53
  display: block;
54
  width: 100%;
55
+ }
56
+ .first-column {
57
  padding-left: 140px;
 
58
  }
59
  .welcome-to-cau .welcome-column.welcome-column-half {
60
  width: 50%;
cau_emails.php CHANGED
@@ -3,30 +3,23 @@
3
  // Check if emails should be send or not
4
  function cau_check_updates_mail() {
5
 
6
- global $wpdb;
7
- $table_name = $wpdb->prefix . "auto_updates";
8
- $cau_configs = $wpdb->get_results( "SELECT * FROM $table_name" );
9
-
10
- if( $cau_configs[5]->onoroff == 'on' ) {
11
  cau_list_theme_updates(); // Check for theme updates
12
  cau_list_plugin_updates(); // Check for plugin updates
13
  }
14
 
15
- if( $cau_configs[6]->onoroff == 'on' && $cau_configs[0]->onoroff == 'on' ) cau_plugin_updated(); // Check for updated plugins
16
  }
17
 
18
  // Ge the emailadresses it should be send to
19
  function cau_set_email() {
20
 
21
- global $wpdb;
22
- $table_name = $wpdb->prefix . "auto_updates";
23
- $cau_configs = $wpdb->get_results( "SELECT * FROM $table_name" );
24
  $emailArray = array();
25
 
26
- if( $cau_configs[4]->onoroff == '' ) {
27
  array_push( $emailArray, get_option('admin_email') );
28
  } else {
29
- $emailAdresses = $cau_configs[4]->onoroff;
30
  $list = explode( ", ", $emailAdresses );
31
  foreach ( $list as $key ) {
32
  array_push( $emailArray, $list );
@@ -92,7 +85,7 @@ function cau_list_theme_updates() {
92
 
93
  foreach ( cau_set_email() as $key => $value) {
94
  foreach ($value as $k => $v) {
95
- wp_mail( $v, $subject, $message, $headers );
96
  }
97
  break;
98
  }
@@ -127,7 +120,7 @@ function cau_list_plugin_updates() {
127
 
128
  foreach ( cau_set_email() as $key => $value) {
129
  foreach ($value as $k => $v) {
130
- wp_mail( $v, $subject, $message, $headers );
131
  }
132
  break;
133
  }
@@ -267,7 +260,7 @@ function cau_plugin_updated() {
267
  // Send to all addresses
268
  foreach ( cau_set_email() as $key => $value) {
269
  foreach ($value as $k => $v) {
270
- wp_mail( $v, $subject, $message, $headers );
271
  }
272
  break;
273
  }
@@ -285,7 +278,7 @@ function cau_plugin_updated() {
285
  // Send to all addresses
286
  foreach ( cau_set_email() as $key => $value) {
287
  foreach ($value as $k => $v) {
288
- wp_mail( $v, $subject, $message, $headers );
289
  }
290
  break;
291
  }
3
  // Check if emails should be send or not
4
  function cau_check_updates_mail() {
5
 
6
+ if( cau_get_db_value( 'send' ) == 'on' ) {
 
 
 
 
7
  cau_list_theme_updates(); // Check for theme updates
8
  cau_list_plugin_updates(); // Check for plugin updates
9
  }
10
 
11
+ if( cau_get_db_value( 'sendupdate' ) == 'on' && cau_get_db_value( 'plugins' ) == 'on' ) cau_plugin_updated(); // Check for updated plugins
12
  }
13
 
14
  // Ge the emailadresses it should be send to
15
  function cau_set_email() {
16
 
 
 
 
17
  $emailArray = array();
18
 
19
+ if( cau_get_db_value( 'email' ) == '' ) {
20
  array_push( $emailArray, get_option('admin_email') );
21
  } else {
22
+ $emailAdresses = cau_get_db_value( 'email' );
23
  $list = explode( ", ", $emailAdresses );
24
  foreach ( $list as $key ) {
25
  array_push( $emailArray, $list );
85
 
86
  foreach ( cau_set_email() as $key => $value) {
87
  foreach ($value as $k => $v) {
88
+ wp_mail( $v, $subject, $message );
89
  }
90
  break;
91
  }
120
 
121
  foreach ( cau_set_email() as $key => $value) {
122
  foreach ($value as $k => $v) {
123
+ wp_mail( $v, $subject, $message );
124
  }
125
  break;
126
  }
260
  // Send to all addresses
261
  foreach ( cau_set_email() as $key => $value) {
262
  foreach ($value as $k => $v) {
263
+ wp_mail( $v, $subject, $message );
264
  }
265
  break;
266
  }
278
  // Send to all addresses
279
  foreach ( cau_set_email() as $key => $value) {
280
  foreach ($value as $k => $v) {
281
+ wp_mail( $v, $subject, $message );
282
  }
283
  break;
284
  }
cau_functions.php CHANGED
@@ -1,5 +1,16 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
3
  // Get the set timezone
4
  function cau_get_proper_timezone() {
5
 
1
  <?php
2
 
3
+ // Get database value
4
+ function cau_get_db_value( $name ) {
5
+
6
+ global $wpdb;
7
+ $table_name = $wpdb->prefix . "auto_updates";
8
+ $cau_configs = $wpdb->get_results( "SELECT * FROM $table_name WHERE name = '$name'" );
9
+
10
+ return $cau_configs[0]->onoroff;
11
+
12
+ }
13
+
14
  // Get the set timezone
15
  function cau_get_proper_timezone() {
16
 
companion-auto-update.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Companion Auto Update
4
  * Plugin URI: http://codeermeneer.nl/portfolio/companion-auto-update/
5
  * Description: This plugin auto updates all plugins, all themes and the wordpress core.
6
- * Version: 3.4.7
7
  * Author: Papin Schipper
8
  * Author URI: http://codeermeneer.nl/
9
  * Contributors: papin
@@ -56,7 +56,7 @@ function cau_donateUrl() {
56
 
57
  // Database version
58
  function cau_db_version() {
59
- return '3.5.1';
60
  }
61
  function cau_database_creation() {
62
 
@@ -121,21 +121,21 @@ function cau_install_data() {
121
  $toemail = get_option('admin_email');
122
 
123
  // Update configs
124
- if( !cau_check_if_exists( 'plugins' ) ) $wpdb->insert( $table_name, array( 'name' => 'plugins', 'onoroff' => 'on' ) );
125
- if( !cau_check_if_exists( 'themes' ) ) $wpdb->insert( $table_name, array( 'name' => 'themes', 'onoroff' => 'on' ) );
126
- if( !cau_check_if_exists( 'minor' ) ) $wpdb->insert( $table_name, array( 'name' => 'minor', 'onoroff' => 'on' ) );
127
- if( !cau_check_if_exists( 'major' ) ) $wpdb->insert( $table_name, array( 'name' => 'major', 'onoroff' => '' ) );
128
 
129
  // Email configs
130
- if( !cau_check_if_exists( 'email' ) ) $wpdb->insert( $table_name, array( 'name' => 'email', 'onoroff' => '' ) );
131
- if( !cau_check_if_exists( 'send' ) ) $wpdb->insert( $table_name, array( 'name' => 'send', 'onoroff' => '' ) );
132
- if( !cau_check_if_exists( 'sendupdate' ) ) $wpdb->insert( $table_name, array( 'name' => 'sendupdate', 'onoroff' => '' ) );
133
 
134
  // Advanced
135
- if( !cau_check_if_exists( 'notUpdateList' ) ) $wpdb->insert( $table_name, array( 'name' => 'notUpdateList', 'onoroff' => '' ) );
136
- if( !cau_check_if_exists( 'notUpdateListTh' ) ) $wpdb->insert( $table_name, array( 'name' => 'notUpdateListTh', 'onoroff' => '' ) );
137
- if( !cau_check_if_exists( 'translations' ) ) $wpdb->insert( $table_name, array( 'name' => 'translations', 'onoroff' => 'on' ) );
138
- if( !cau_check_if_exists( 'wpemails' ) ) $wpdb->insert( $table_name, array( 'name' => 'wpemails', 'onoroff' => 'on' ) );
139
 
140
 
141
  }
3
  * Plugin Name: Companion Auto Update
4
  * Plugin URI: http://codeermeneer.nl/portfolio/companion-auto-update/
5
  * Description: This plugin auto updates all plugins, all themes and the wordpress core.
6
+ * Version: 3.4.8
7
  * Author: Papin Schipper
8
  * Author URI: http://codeermeneer.nl/
9
  * Contributors: papin
56
 
57
  // Database version
58
  function cau_db_version() {
59
+ return '3.5.2';
60
  }
61
  function cau_database_creation() {
62
 
121
  $toemail = get_option('admin_email');
122
 
123
  // Update configs
124
+ if( !cau_check_if_exists( 'plugins' ) ) $wpdb->insert( $table_name, array( 'name' => 'plugins', 'onoroff' => 'on' ) ); // 0
125
+ if( !cau_check_if_exists( 'themes' ) ) $wpdb->insert( $table_name, array( 'name' => 'themes', 'onoroff' => 'on' ) ); // 1
126
+ if( !cau_check_if_exists( 'minor' ) ) $wpdb->insert( $table_name, array( 'name' => 'minor', 'onoroff' => 'on' ) ); // 2
127
+ if( !cau_check_if_exists( 'major' ) ) $wpdb->insert( $table_name, array( 'name' => 'major', 'onoroff' => '' ) ); // 3
128
 
129
  // Email configs
130
+ if( !cau_check_if_exists( 'email' ) ) $wpdb->insert( $table_name, array( 'name' => 'email', 'onoroff' => '' ) ); // 4
131
+ if( !cau_check_if_exists( 'send' ) ) $wpdb->insert( $table_name, array( 'name' => 'send', 'onoroff' => '' ) ); // 5
132
+ if( !cau_check_if_exists( 'sendupdate' ) ) $wpdb->insert( $table_name, array( 'name' => 'sendupdate', 'onoroff' => '' ) ); // 6
133
 
134
  // Advanced
135
+ if( !cau_check_if_exists( 'notUpdateList' ) ) $wpdb->insert( $table_name, array( 'name' => 'notUpdateList', 'onoroff' => '' ) ); // 7
136
+ if( !cau_check_if_exists( 'translations' ) ) $wpdb->insert( $table_name, array( 'name' => 'translations', 'onoroff' => 'on' ) ); // 8
137
+ if( !cau_check_if_exists( 'wpemails' ) ) $wpdb->insert( $table_name, array( 'name' => 'wpemails', 'onoroff' => 'on' ) ); // 9
138
+ if( !cau_check_if_exists( 'notUpdateListTh' ) ) $wpdb->insert( $table_name, array( 'name' => 'notUpdateListTh', 'onoroff' => '' ) ); // 10
139
 
140
 
141
  }
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: auto, automatic, background, update, updates, updating, automatic updates,
5
  Requires at least: 3.6.0
6
  Tested up to: 5.3
7
  Requires PHP: 5.1
8
- Stable tag: 3.4.7
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -26,8 +26,7 @@ We want you to know what's happening on your website. This plugin offers setting
26
  But if you don't want to recieve emails about this you can still log in and view the changelog to see what happened.
27
 
28
  = Advanced Controls =
29
- You can control auto-updating per plugin via the plugin filter.
30
- For example: If you have Woocommerce installed but you do not wan't to have it auto-updated you can now disable auto-updating for Woocommerce only, so your other plugins will continue to be updated.
31
 
32
  = Scheduling =
33
  By default the updater will run twice a day, but you can change this to every hour or to daily. When set to daily you can even set the time at which it should run, this way you can make sure that it will not overload your server by letting it run at times with less activity. The same settings can be set for notifications.
@@ -69,6 +68,10 @@ Your feedback is what made this plugin what is and what it’ll become so keep t
69
 
70
  == Changelog ==
71
 
 
 
 
 
72
  = 3.4.7 (January 1, 2020) =
73
  * Fix: Cronjob error
74
 
5
  Requires at least: 3.6.0
6
  Tested up to: 5.3
7
  Requires PHP: 5.1
8
+ Stable tag: 3.4.8
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
26
  But if you don't want to recieve emails about this you can still log in and view the changelog to see what happened.
27
 
28
  = Advanced Controls =
29
+ You might not want to update all plugins or themes automatically, no problem! With the advanced filters you can easily select single plugins and/or themes that you want the plugin to skip. We can notify you when one of the selected plugins has an update ready so you can then head over to your dashboard and update them manually.
 
30
 
31
  = Scheduling =
32
  By default the updater will run twice a day, but you can change this to every hour or to daily. When set to daily you can even set the time at which it should run, this way you can make sure that it will not overload your server by letting it run at times with less activity. The same settings can be set for notifications.
68
 
69
  == Changelog ==
70
 
71
+ = 3.4.8 (January 2, 2020) =
72
+ * This update brings a few under the hood changes to ensure better updates in the future
73
+ * We've also fixed a (rare) Undefined variable: headers error
74
+
75
  = 3.4.7 (January 1, 2020) =
76
  * Fix: Cronjob error
77