Companion Auto Update - Version 3.4.5

Version Description

(November 26, 2019) = * Fix: Some of you reported several database errors in version 3.4.4, these are fixed now * Tweak: Few minor design changes to fit the changes made in WordPress 5.3 * Tweak: Explained that emails will also be sent on manual plugin updates

Download this release

Release Info

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

Code changes from version 3.4.4 to 3.4.5

admin/dashboard.php CHANGED
@@ -42,7 +42,7 @@
42
 
43
  if( isset( $_GET['welcome'] ) ) {
44
 
45
- echo '<div class="welcome-to-cau welcome-bg">
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>
42
 
43
  if( isset( $_GET['welcome'] ) ) {
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>
admin/schedule.php CHANGED
@@ -300,7 +300,7 @@ $availableIntervals = wp_get_schedules();
300
 
301
  </div><div class="cau-column-small">
302
 
303
- <div class="welcome-to-cau love-bg cau-show-love cau-dashboard-box">
304
  <h3><?php _e( 'Like our plugin?', 'companion-auto-update' ); ?></h3>
305
  <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>
306
  <a href="https://wordpress.org/support/plugin/companion-auto-update/reviews/#new-post" target="_blank" class="cau-button rate-button">
300
 
301
  </div><div class="cau-column-small">
302
 
303
+ <div class="welcome-to-cau love-bg cau-show-love cau-dashboard-box welcome-panel">
304
  <h3><?php _e( 'Like our plugin?', 'companion-auto-update' ); ?></h3>
305
  <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>
306
  <a href="https://wordpress.org/support/plugin/companion-auto-update/reviews/#new-post" target="_blank" class="cau-button rate-button">
admin/support.php CHANGED
@@ -1,5 +1,5 @@
1
- <div class="welcome-to-cau support-bg">
2
- <div class="welcome-column welcome-column-first welcome-column welcome-column-half">
3
  <div class="welcome-column welcome-column welcome-column-third">
4
  <h3><?php _e( 'Help' ); ?></h3>
5
  <ul>
@@ -22,7 +22,7 @@
22
  </div>
23
  </div>
24
 
25
- <div class="welcome-to-cau welcome-bg">
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>
@@ -33,19 +33,21 @@
33
  </div>
34
  </div>
35
 
36
- <div class="welcome-to-cau love-bg cau-show-love">
37
- <div class="welcome-column welcome-column-first welcome-column welcome-column-half">
38
- <h3><?php _e( 'Like our plugin?', 'companion-auto-update' ); ?></h3>
39
- <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>
40
- </div><div class="welcome-column welcome-column welcome-column-half">
41
- <a href="https://wordpress.org/support/plugin/companion-auto-update/reviews/#new-post" target="_blank" class="cau-button rate-button">
42
- <span class="dashicons dashicons-star-filled"></span>
43
- <?php _e('Rate us (5 stars?)', 'companion-auto-update'); ?>
44
- </a>
45
- <a href="<?php echo cau_donateUrl(); ?>" target="_blank" class="cau-button donate-button">
46
- <span class="dashicons dashicons-heart"></span>
47
- <?php _e('Donate to help development', 'companion-auto-update'); ?>
48
- </a>
49
- <p style="font-size: 12px; color: #BDBDBD;">Donations via PayPal. Amount can be changed.</p>
 
 
50
  </div>
51
  </div>
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>
22
  </div>
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>
33
  </div>
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>
41
+ </div><div class="welcome-column welcome-column-half" style="text-align: right;">
42
+ <a href="https://wordpress.org/support/plugin/companion-auto-update/reviews/#new-post" target="_blank" class="cau-button rate-button">
43
+ <span class="dashicons dashicons-star-filled"></span>
44
+ <?php _e('Rate us (5 stars?)', 'companion-auto-update'); ?>
45
+ </a>
46
+ <a href="<?php echo cau_donateUrl(); ?>" target="_blank" class="cau-button donate-button">
47
+ <span class="dashicons dashicons-heart"></span>
48
+ <?php _e('Donate to help development', 'companion-auto-update'); ?>
49
+ </a>
50
+ <p style="font-size: 12px; color: #BDBDBD;">Donations via PayPal. Amount can be changed.</p>
51
+ </div>
52
  </div>
53
  </div>
backend/style.css CHANGED
@@ -12,8 +12,6 @@
12
  /* Welcome screen */
13
  .welcome-to-cau {
14
  background: #FFF;
15
- border: 1px solid #E5E5E5;
16
- box-shadow: 0 1px 1px rgba(0,0,0,0.04);
17
  margin: 25px 0;
18
  padding: 30px;
19
  background-size: 140px;
@@ -38,6 +36,7 @@
38
  }
39
  .welcome-to-cau h3 {
40
  font-size: 16px;
 
41
  }
42
  .welcome-to-cau a {
43
  text-decoration: none;
@@ -50,12 +49,11 @@
50
  vertical-align: middle;
51
  }
52
  .welcome-to-cau .welcome-column.welcome-column-first {
 
 
53
  padding-left: 140px;
54
  box-sizing: border-box;
55
  }
56
- .welcome-to-cau.cau-show-love .welcome-column.welcome-column-half:not(.welcome-column-first) {
57
- text-align: right;
58
- }
59
  .welcome-to-cau .welcome-column.welcome-column-half {
60
  width: 50%;
61
  }
12
  /* Welcome screen */
13
  .welcome-to-cau {
14
  background: #FFF;
 
 
15
  margin: 25px 0;
16
  padding: 30px;
17
  background-size: 140px;
36
  }
37
  .welcome-to-cau h3 {
38
  font-size: 16px;
39
+ margin-top: 0;
40
  }
41
  .welcome-to-cau a {
42
  text-decoration: none;
49
  vertical-align: middle;
50
  }
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%;
59
  }
cau_emails.php CHANGED
@@ -58,6 +58,8 @@ The following %1$s have been updated:', 'companion-auto-update'
58
 
59
  $text .= $updatedList;
60
 
 
 
61
  return $text;
62
 
63
  }
58
 
59
  $text .= $updatedList;
60
 
61
+ $text .= __( "(You'll also recieve this email if you manually updated a plugin or theme)", "companion-auto-update" );
62
+
63
  return $text;
64
 
65
  }
cau_functions.php CHANGED
@@ -685,7 +685,8 @@ add_filter( 'cron_schedules', 'cau_addMoreIntervals' );
685
  function cau_savePluginInformation() {
686
 
687
  global $wpdb;
688
- $updateLog = $wpdb->prefix."update_log";
 
689
  $allPlugins = get_plugins();
690
 
691
  foreach ( $allPlugins as $key => $value ) {
@@ -695,7 +696,7 @@ function cau_savePluginInformation() {
695
  $slug = $key;
696
  $version = $version;
697
 
698
- if( !cau_check_if_exists( $slug, 'slug', $updateLog ) ) $wpdb->insert( $updateLog, array( 'slug' => $slug, 'oldVersion' => $version ) );
699
  }
700
  }
701
  add_action( 'cau_custom_hooks_plugins', 'cau_savePluginInformation' );
685
  function cau_savePluginInformation() {
686
 
687
  global $wpdb;
688
+ $updateDB = "update_log";
689
+ $updateLog = $wpdb->prefix.$updateDB;
690
  $allPlugins = get_plugins();
691
 
692
  foreach ( $allPlugins as $key => $value ) {
696
  $slug = $key;
697
  $version = $version;
698
 
699
+ if( !cau_check_if_exists( $slug, 'slug', $updateDB ) ) $wpdb->insert( $updateLog, array( 'slug' => $slug, 'oldVersion' => $version ) );
700
  }
701
  }
702
  add_action( 'cau_custom_hooks_plugins', 'cau_savePluginInformation' );
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.4
7
  * Author: Papin Schipper
8
  * Author URI: http://codeermeneer.nl/
9
  * Contributors: papin
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.5
7
  * Author: Papin Schipper
8
  * Author URI: http://codeermeneer.nl/
9
  * Contributors: papin
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.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -58,6 +58,10 @@ Settings can be found trough Tools > Auto Updater
58
 
59
  [https://codeermeneer.nl/documentation/auto-update/faq-auto-updater/](https://codeermeneer.nl/documentation/auto-update/faq-auto-updater/)
60
 
 
 
 
 
61
 
62
  == Screenshots ==
63
 
@@ -68,6 +72,11 @@ Settings can be found trough Tools > Auto Updater
68
 
69
  == Changelog ==
70
 
 
 
 
 
 
71
  = 3.4.4 (November 16, 2019) =
72
  * Sometimes the database wouldn't correctly update to the newest version, we've added a manual button for this now.
73
  * Sometimes plugins excluded from the updater would still update, this should be fixed now.
5
  Requires at least: 3.6.0
6
  Tested up to: 5.3
7
  Requires PHP: 5.1
8
+ Stable tag: 3.4.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
58
 
59
  [https://codeermeneer.nl/documentation/auto-update/faq-auto-updater/](https://codeermeneer.nl/documentation/auto-update/faq-auto-updater/)
60
 
61
+ = What features can I expect to see in the future? =
62
+
63
+ Your feedback is what made this plugin what is and what it’ll become so keep the feedback coming! To see what features you've suggested and what we're working on [read our blogpost here](https://codeermeneer.nl/blog/companion-auto-update-and-its-future/)
64
+
65
 
66
  == Screenshots ==
67
 
72
 
73
  == Changelog ==
74
 
75
+ = 3.4.5 (November 26, 2019) =
76
+ * Fix: Some of you reported several database errors in version 3.4.4, these are fixed now
77
+ * Tweak: Few minor design changes to fit the changes made in WordPress 5.3
78
+ * Tweak: Explained that emails will also be sent on manual plugin updates
79
+
80
  = 3.4.4 (November 16, 2019) =
81
  * Sometimes the database wouldn't correctly update to the newest version, we've added a manual button for this now.
82
  * Sometimes plugins excluded from the updater would still update, this should be fixed now.