Companion Auto Update - Version 3.0.4

Version Description

(March 3, 2018) = * Fix: Schedule Time not able to set! Read support topic here

Download this release

Release Info

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

Code changes from version 3.0.3 to 3.0.4

Files changed (3) hide show
  1. admin/schedule.php +22 -4
  2. companion-auto-update.php +1 -1
  3. readme.txt +4 -1
admin/schedule.php CHANGED
@@ -87,12 +87,20 @@ if( isset( $_POST['submit'] ) ) {
87
  </p>
88
  <p>
89
 
 
 
 
 
 
 
 
 
90
  <div class='cau_schedule_input'>
91
- <input type='text' name='pluginScheduleTimeH' value='<?php echo date("H"); ?>'>
92
  </div><div class='cau_schedule_input_div'>
93
  :
94
  </div><div class='cau_schedule_input'>
95
- <input type='text' name='pluginScheduleTimeM' value='<?php echo date("i"); ?>'>
96
  </div><div class='cau_shedule_notation'>
97
  <b><?php _e('Time notation: 24H', 'companion-auto-update'); ?></b>
98
  </div>
@@ -106,6 +114,7 @@ if( isset( $_POST['submit'] ) ) {
106
  <th scope="row"><?php _e('Theme update interval', 'companion-auto-update');?></th>
107
  <td>
108
  <p>
 
109
  <select name='theme_schedule'>
110
  <option value='hourly' <?php if( $theme_schedule == 'hourly' ) { echo "SELECTED"; } ?> ><?php _e('Hourly', 'companion-auto-update');?></option>
111
  <option value='twicedaily' <?php if( $theme_schedule == 'twicedaily' ) { echo "SELECTED"; } ?> ><?php _e('Twice Daily', 'companion-auto-update');?></option>
@@ -113,12 +122,21 @@ if( isset( $_POST['submit'] ) ) {
113
  </select>
114
  </p>
115
  <p>
 
 
 
 
 
 
 
 
 
116
  <div class='cau_schedule_input'>
117
- <input type='text' name='ThemeScheduleTimeH' value='<?php echo date("H"); ?>'>
118
  </div><div class='cau_schedule_input_div'>
119
  :
120
  </div><div class='cau_schedule_input'>
121
- <input type='text' name='ThemeScheduleTimeM' value='<?php echo date("i"); ?>'>
122
  </div><div class='cau_shedule_notation'>
123
  <b><?php _e('Time notation: 24H', 'companion-auto-update'); ?></b>
124
  </div>
87
  </p>
88
  <p>
89
 
90
+ <?php
91
+
92
+ $setTimePlugins = wp_next_scheduled( 'wp_update_plugins' );
93
+ $setTimePluginsHour = date( 'H' , $setTimePlugins );
94
+ $setTimePluginsMin = date( 'i' , $setTimePlugins );
95
+
96
+ ?>
97
+
98
  <div class='cau_schedule_input'>
99
+ <input type='text' name='pluginScheduleTimeH' value='<?php echo $setTimePluginsHour; ?>'>
100
  </div><div class='cau_schedule_input_div'>
101
  :
102
  </div><div class='cau_schedule_input'>
103
+ <input type='text' name='pluginScheduleTimeM' value='<?php echo $setTimePluginsMin; ?>'>
104
  </div><div class='cau_shedule_notation'>
105
  <b><?php _e('Time notation: 24H', 'companion-auto-update'); ?></b>
106
  </div>
114
  <th scope="row"><?php _e('Theme update interval', 'companion-auto-update');?></th>
115
  <td>
116
  <p>
117
+
118
  <select name='theme_schedule'>
119
  <option value='hourly' <?php if( $theme_schedule == 'hourly' ) { echo "SELECTED"; } ?> ><?php _e('Hourly', 'companion-auto-update');?></option>
120
  <option value='twicedaily' <?php if( $theme_schedule == 'twicedaily' ) { echo "SELECTED"; } ?> ><?php _e('Twice Daily', 'companion-auto-update');?></option>
122
  </select>
123
  </p>
124
  <p>
125
+
126
+ <?php
127
+
128
+ $setTimeThemes = wp_next_scheduled( 'wp_update_themes' );
129
+ $setTimeThemesHour = date( 'H' , $setTimeThemes );
130
+ $setTimeThemesMins = date( 'i' , $setTimeThemes );
131
+
132
+ ?>
133
+
134
  <div class='cau_schedule_input'>
135
+ <input type='text' name='ThemeScheduleTimeH' value='<?php echo $setTimeThemesHour; ?>'>
136
  </div><div class='cau_schedule_input_div'>
137
  :
138
  </div><div class='cau_schedule_input'>
139
+ <input type='text' name='ThemeScheduleTimeM' value='<?php echo $setTimeThemesMins; ?>'>
140
  </div><div class='cau_shedule_notation'>
141
  <b><?php _e('Time notation: 24H', 'companion-auto-update'); ?></b>
142
  </div>
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.0.3
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.0.4
7
  * Author: Papin Schipper
8
  * Author URI: http://codeermeneer.nl/
9
  * Contributors: papin
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/dakel/2
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.9
7
- Stable tag: 3.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -77,6 +77,9 @@ If you launched your website a few years ago using cPanel it could be the case t
77
 
78
  == Changelog ==
79
 
 
 
 
80
  = 3.0.3 (February 28, 2018) =
81
  * Added update time to changelog
82
  * Minor tweaks to mobile design
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.9
7
+ Stable tag: 3.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
77
 
78
  == Changelog ==
79
 
80
+ = 3.0.4 (March 3, 2018) =
81
+ * Fix: Schedule Time not able to set! [Read support topic here](https://wordpress.org/support/topic/schedule-time-not-able-to-set/)
82
+
83
  = 3.0.3 (February 28, 2018) =
84
  * Added update time to changelog
85
  * Minor tweaks to mobile design