Companion Auto Update - Version 3.3.4

Version Description

(December 24, 2018) = * Improved: Few tweaks to the new warning icon * Improved: Changed a few strings to be clearer to understand

Download this release

Release Info

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

Code changes from version 3.3.3 to 3.3.4

admin/log.php CHANGED
@@ -1,2 +1,2 @@
1
- <div class="cau_spacing"></div>
2
  <?php cau_fetch_log( 'all', 'table' ); ?>
1
+ <h2><?php _e( 'Update log', 'companion-auto-update' ); ?></h2>
2
  <?php cau_fetch_log( 'all', 'table' ); ?>
admin/pluginlist.php CHANGED
@@ -36,10 +36,10 @@ if( isset( $_POST['reset'] ) ) {
36
 
37
  <form method="POST">
38
 
39
- <p>
40
- <input type='submit' name='submit' id='submit' class='button button-primary' value='<?php _e( "Save Changes" ); ?>'>
41
  <input type='submit' name='reset' id='reset' class='button button-alt' value='<?php _e( "Reset list", "companion-auto-update" ); ?>'>
42
- </p>
43
 
44
  <table class="wp-list-table widefat autoupdate striped">
45
  <thead>
@@ -114,9 +114,9 @@ if( isset( $_POST['reset'] ) ) {
114
 
115
  <?php wp_nonce_field( 'cau_save_pluginlis' ); ?>
116
 
117
- <p>
118
- <input type='submit' name='submit' id='submit' class='button button-primary' value='<?php _e( "Save Changes" ); ?>'>
119
  <input type='submit' name='reset' id='reset' class='button button-alt' value='<?php _e( "Reset list", "companion-auto-update" ); ?>'>
120
- </p>
121
 
122
  </form>
36
 
37
  <form method="POST">
38
 
39
+ <div class='pluginListButtons'>
40
+ <?php submit_button(); ?>
41
  <input type='submit' name='reset' id='reset' class='button button-alt' value='<?php _e( "Reset list", "companion-auto-update" ); ?>'>
42
+ </div>
43
 
44
  <table class="wp-list-table widefat autoupdate striped">
45
  <thead>
114
 
115
  <?php wp_nonce_field( 'cau_save_pluginlis' ); ?>
116
 
117
+ <div class='pluginListButtons'>
118
+ <?php submit_button(); ?>
119
  <input type='submit' name='reset' id='reset' class='button button-alt' value='<?php _e( "Reset list", "companion-auto-update" ); ?>'>
120
+ </div>
121
 
122
  </form>
admin/schedule.php CHANGED
@@ -244,9 +244,8 @@ if( isset( $_GET['showmessage'] ) ) {
244
 
245
  <?php wp_nonce_field( 'cau_save_schedule' ); ?>
246
 
247
- <p><!-- SPACING --></p>
248
-
249
- <input type='submit' name='submit' id='submit' class='button button-primary' value='<?php _e( "Save Changes" ); ?>'>
250
 
251
  </form>
252
 
244
 
245
  <?php wp_nonce_field( 'cau_save_schedule' ); ?>
246
 
247
+ <div class="cau_spacing"></div>
248
+ <?php submit_button(); ?>
 
249
 
250
  </form>
251
 
admin/status.php CHANGED
@@ -184,7 +184,7 @@ if( get_option( 'blog_public' ) == 0 ) { ?>
184
  <tr>
185
  <td class="cau_plugin_issue_name"><span class='cau_warning'><span class="dashicons dashicons-warning"></span> <?php _e( 'Warning', 'companion-auto-update' ); ?></span></td>
186
  <td class="cau_plugin_issue_explain">
187
- <?php _e( 'Search Engines are discouraged to index your site, because this plugin only works on sites with traffic we can\'t guarantee that everything will update now.', 'companion-auto-update' ); ?>
188
  </td>
189
  <td class="cau_plugin_issue_fixit">
190
  <a href="<?php echo admin_url( 'options-reading.php' ); ?>" class="button button-alt"><?php _e( 'Fix it', 'companion-auto-update' ); ?></a>
184
  <tr>
185
  <td class="cau_plugin_issue_name"><span class='cau_warning'><span class="dashicons dashicons-warning"></span> <?php _e( 'Warning', 'companion-auto-update' ); ?></span></td>
186
  <td class="cau_plugin_issue_explain">
187
+ <?php _e( 'You’ve chosen to disscourage Search Engines from indexing your site. Auto-updating works best on sites with more traffic, consider enabling indexing for your site.', 'companion-auto-update' ); ?>
188
  </td>
189
  <td class="cau_plugin_issue_fixit">
190
  <a href="<?php echo admin_url( 'options-reading.php' ); ?>" class="button button-alt"><?php _e( 'Fix it', 'companion-auto-update' ); ?></a>
backend/style.css CHANGED
@@ -124,6 +124,9 @@ table.autoupdate tr td.column-description p {
124
  }
125
 
126
  /* Update Log */
 
 
 
127
  table.autoupdatelog strong {
128
  color: #000;
129
  }
@@ -161,7 +164,16 @@ table.rollbacklist td a.versionselectbutton {
161
  text-align: center;
162
  }
163
 
164
- /* Custom checkboxes */
 
 
 
 
 
 
 
 
 
165
  #the-list input[type="checkbox"]:not(:checked), #the-list input[type="checkbox"]:checked {
166
  width: 45px;
167
  height: 45px;
124
  }
125
 
126
  /* Update Log */
127
+ table.autoupdatelog {
128
+ margin-top: 25px;
129
+ }
130
  table.autoupdatelog strong {
131
  color: #000;
132
  }
164
  text-align: center;
165
  }
166
 
167
+ /* Plugin list */
168
+ .pluginListButtons {
169
+ display: block;
170
+ padding: 15px 0;
171
+ }
172
+ .pluginListButtons p.submit {
173
+ display: inline-block;
174
+ margin: 0!important;
175
+ padding: 0!important;
176
+ }
177
  #the-list input[type="checkbox"]:not(:checked), #the-list input[type="checkbox"]:checked {
178
  width: 45px;
179
  height: 45px;
backend/warningbar.css CHANGED
@@ -3,26 +3,9 @@
3
  content: "\f332";
4
  top: 3px;
5
  }
6
- #wpadminbar #wp-admin-bar-cau-has-issues .cau-warning-icon {
7
- font-size: 0!important;
8
  }
9
- #wpadminbar #wp-admin-bar-cau-has-issues .cau-warning-icon:after {
10
- content: "";
11
- display: inline-block;
12
- background: #DDD;
13
- color: transparent;
14
- width: 13px;
15
- height: 13px;
16
- border-radius: 10px;
17
- position: relative;
18
- bottom: -2px;
19
- }
20
- #wpadminbar #wp-admin-bar-cau-has-issues .cau-warning-icon.cau-level-high:after {
21
- background: #FF0000;
22
- }
23
- #wpadminbar #wp-admin-bar-cau-has-issues .cau-warning-icon.cau-level-low:after {
24
- background: #FFBA00;
25
- }
26
- #wpadminbar #wp-admin-bar-cau-has-issues .cau-warning-title.cau-title-level-high {
27
- padding-right: 2px;
28
  }
3
  content: "\f332";
4
  top: 3px;
5
  }
6
+ #wpadminbar #wp-admin-bar-cau-has-issues .cau-level-low {
7
+ /*color: #FFBA00;*/
8
  }
9
+ #wpadminbar #wp-admin-bar-cau-has-issues .cau-level-high {
10
+ color: #FF0000;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  }
cau_functions.php CHANGED
@@ -31,20 +31,18 @@ function cau_pluginHasIssues() {
31
 
32
  $return = false;
33
 
34
- if( cau_incompatiblePlugins() OR get_option( 'blog_public' ) == 0 ) {
35
  $return = true;
36
- $level = 'low';
37
  }
38
 
39
  if( checkAutomaticUpdaterDisabled() ) {
40
  $return = true;
41
- $level = 'high';
42
  }
43
 
44
  return $return;
45
  }
46
  function cau_pluginIssueLevels() {
47
-
48
  if( cau_incompatiblePlugins() OR get_option( 'blog_public' ) == 0 ) {
49
  $level = 'low';
50
  }
@@ -55,6 +53,26 @@ function cau_pluginIssueLevels() {
55
 
56
  return $level;
57
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
 
59
  // Run custom hooks on plugin update
60
  function cau_run_custom_hooks_p() {
31
 
32
  $return = false;
33
 
34
+ if( get_option( 'blog_public' ) == 0 ) {
35
  $return = true;
 
36
  }
37
 
38
  if( checkAutomaticUpdaterDisabled() ) {
39
  $return = true;
 
40
  }
41
 
42
  return $return;
43
  }
44
  function cau_pluginIssueLevels() {
45
+
46
  if( cau_incompatiblePlugins() OR get_option( 'blog_public' ) == 0 ) {
47
  $level = 'low';
48
  }
53
 
54
  return $level;
55
  }
56
+ function cau_pluginIssueCount() {
57
+
58
+ $count = 0;
59
+
60
+ if( get_option( 'blog_public' ) == 0 ) {
61
+ $count++;
62
+ }
63
+ if( checkAutomaticUpdaterDisabled() ) {
64
+ $count++;
65
+ }
66
+ if( cau_incompatiblePlugins() ) {
67
+ foreach ( cau_incompatiblePluginlist() as $key => $value ) {
68
+ if( is_plugin_active( $key ) ) {
69
+ $count++;
70
+ }
71
+ }
72
+ }
73
+
74
+ return $count;
75
+ }
76
 
77
  // Run custom hooks on plugin update
78
  function cau_run_custom_hooks_p() {
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.3.3
7
  * Author: Papin Schipper
8
  * Author URI: http://codeermeneer.nl/
9
  * Contributors: papin
@@ -227,9 +227,9 @@ function cau_widget() {
227
  echo '<p>'.__('Below are the last 7 updates ran on this site. Includes plugins and themes, both automatically updated and manually updated.', 'companion-auto-update').'</p>';
228
  cau_fetch_log( '7' );
229
  echo '<p>
230
- <a href="'.get_admin_url().''.cau_menloc().'?page=cau-settings&tab=log">'.__('View full changelog', 'companion-auto-update').'</a>
231
  <span class="cau_divide">|</span>
232
- <a href="'.get_admin_url().''.cau_menloc().'?page=cau-settings">'.__( 'Settings' ).'</a>
233
  </p>';
234
 
235
  }
@@ -335,7 +335,7 @@ new CAU_auto_update();
335
  // Check for issues
336
  function cau_checkForIssues( $admin_bar ) {
337
 
338
- if( cau_pluginHasIssues() ) {
339
 
340
  if( cau_pluginIssueLevels() == 'high' ) {
341
  $cauWaningBarTitle = __( 'Companion Auto Update ran into a critical error. View the status log for more info.', 'companion-auto-update' );
@@ -345,7 +345,7 @@ function cau_checkForIssues( $admin_bar ) {
345
 
346
  $admin_bar->add_menu( array(
347
  'id' => 'cau-has-issues',
348
- 'title' => '<span class="ab-icon"></span><span class="cau-warning-icon cau-level-'.cau_pluginIssueLevels().'">&bull;</span>',
349
  'href' => admin_url( cau_menloc().'?page=cau-settings&tab=status&cau_page=system' ),
350
  'meta' => array(
351
  'target' => '_self',
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.3.4
7
  * Author: Papin Schipper
8
  * Author URI: http://codeermeneer.nl/
9
  * Contributors: papin
227
  echo '<p>'.__('Below are the last 7 updates ran on this site. Includes plugins and themes, both automatically updated and manually updated.', 'companion-auto-update').'</p>';
228
  cau_fetch_log( '7' );
229
  echo '<p>
230
+ <a href="'.admin_url( cau_menloc().'?page=cau-settings&tab=log&cau_page=system').'">'.__('View full changelog', 'companion-auto-update').'</a>
231
  <span class="cau_divide">|</span>
232
+ <a href="'.admin_url( cau_menloc().'?page=cau-settings').'">'.__( 'Settings' ).'</a>
233
  </p>';
234
 
235
  }
335
  // Check for issues
336
  function cau_checkForIssues( $admin_bar ) {
337
 
338
+ if( cau_pluginHasIssues() && is_admin() ) {
339
 
340
  if( cau_pluginIssueLevels() == 'high' ) {
341
  $cauWaningBarTitle = __( 'Companion Auto Update ran into a critical error. View the status log for more info.', 'companion-auto-update' );
345
 
346
  $admin_bar->add_menu( array(
347
  'id' => 'cau-has-issues',
348
+ 'title' => '<span class="ab-icon"></span><span class="cau-level-'.cau_pluginIssueLevels().'">'.cau_pluginIssueCount().'</span>',
349
  'href' => admin_url( cau_menloc().'?page=cau-settings&tab=status&cau_page=system' ),
350
  'meta' => array(
351
  'target' => '_self',
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/dakel/5/
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: 5.0
7
- Stable tag: 3.3.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -71,6 +71,10 @@ For some reason this plugin seems to have trouble with updating themes by Elegan
71
 
72
  == Changelog ==
73
 
 
 
 
 
74
  = 3.3.3 (December 22, 2018) =
75
  * New: Set the time for Core updates
76
  * New: Welcome screen after plugin activation to help new users find their way
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: 5.0
7
+ Stable tag: 3.3.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
71
 
72
  == Changelog ==
73
 
74
+ = 3.3.4 (December 24, 2018) =
75
+ * Improved: Few tweaks to the new warning icon
76
+ * Improved: Changed a few strings to be clearer to understand
77
+
78
  = 3.3.3 (December 22, 2018) =
79
  * New: Set the time for Core updates
80
  * New: Welcome screen after plugin activation to help new users find their way