Companion Auto Update - Version 3.0.2

Version Description

(February 10, 2018) = * Security improvements

Download this release

Release Info

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

Code changes from version 3.0.1 to 3.0.2

admin/dashboard.php CHANGED
@@ -12,6 +12,8 @@
12
 
13
  if( isset( $_POST['submit'] ) ) {
14
 
 
 
15
  global $wpdb;
16
  $table_name = $wpdb->prefix . "auto_updates";
17
 
@@ -137,4 +139,6 @@
137
  </tr>
138
  </table>
139
 
 
 
140
  <?php submit_button(); ?>
12
 
13
  if( isset( $_POST['submit'] ) ) {
14
 
15
+ check_admin_referer( 'cau_save_settings' );
16
+
17
  global $wpdb;
18
  $table_name = $wpdb->prefix . "auto_updates";
19
 
139
  </tr>
140
  </table>
141
 
142
+ <?php wp_nonce_field( 'cau_save_settings' ); ?>
143
+
144
  <?php submit_button(); ?>
admin/pluginlist.php CHANGED
@@ -10,6 +10,8 @@ foreach ( $configs as $config ) if( $config->onoroff != 'on' ) echo '<div id="me
10
 
11
  if( isset( $_POST['submit'] ) ) {
12
 
 
 
13
  $noUpdateList = '';
14
  $noUpdateCount = 0;
15
 
@@ -24,6 +26,8 @@ if( isset( $_POST['submit'] ) ) {
24
 
25
  if( isset( $_POST['reset'] ) ) {
26
 
 
 
27
  $wpdb->query( " UPDATE $table_name SET onoroff = '' WHERE name = 'notUpdateList' " );
28
  echo '<div id="message" class="updated"><p><b>'.__('Succes', 'companion-auto-update').' &ndash;</b> '.__( 'The no-update-list has been reset, all plugins will be auto-updated from now on', 'companion-auto-update' ).'.</p></div>';
29
  }
@@ -107,6 +111,8 @@ if( isset( $_POST['reset'] ) ) {
107
  </tbody>
108
  </table>
109
 
 
 
110
  <p>
111
  <input type='submit' name='submit' id='submit' class='button button-primary' value='<?php _e( "Save changes", "companion-auto-update" ); ?>'>
112
  <input type='submit' name='reset' id='reset' class='button button-alt' value='<?php _e( "Reset list", "companion-auto-update" ); ?>'>
10
 
11
  if( isset( $_POST['submit'] ) ) {
12
 
13
+ check_admin_referer( 'cau_save_pluginlis' );
14
+
15
  $noUpdateList = '';
16
  $noUpdateCount = 0;
17
 
26
 
27
  if( isset( $_POST['reset'] ) ) {
28
 
29
+ check_admin_referer( 'cau_save_pluginlis' );
30
+
31
  $wpdb->query( " UPDATE $table_name SET onoroff = '' WHERE name = 'notUpdateList' " );
32
  echo '<div id="message" class="updated"><p><b>'.__('Succes', 'companion-auto-update').' &ndash;</b> '.__( 'The no-update-list has been reset, all plugins will be auto-updated from now on', 'companion-auto-update' ).'.</p></div>';
33
  }
111
  </tbody>
112
  </table>
113
 
114
+ <?php wp_nonce_field( 'cau_save_pluginlis' ); ?>
115
+
116
  <p>
117
  <input type='submit' name='submit' id='submit' class='button button-primary' value='<?php _e( "Save changes", "companion-auto-update" ); ?>'>
118
  <input type='submit' name='reset' id='reset' class='button button-alt' value='<?php _e( "Reset list", "companion-auto-update" ); ?>'>
admin/schedule.php CHANGED
@@ -7,6 +7,8 @@ $mail_sc = wp_get_schedule( 'cau_set_schedule_mail' );
7
 
8
  if( isset( $_POST['submit'] ) ) {
9
 
 
 
10
  // Set variables
11
  $plugin_sc = $_POST['plugin_schedule'];
12
  $theme_sc = $_POST['theme_schedule'];
@@ -138,6 +140,8 @@ if( isset( $_POST['submit'] ) ) {
138
  </tr>
139
  </table>
140
 
 
 
141
  <input type='submit' name='submit' id='submit' class='button button-primary' value='<?php _e( "Save changes", "companion-auto-update" ); ?>'>
142
 
143
  </form>
7
 
8
  if( isset( $_POST['submit'] ) ) {
9
 
10
+ check_admin_referer( 'cau_save_schedule' );
11
+
12
  // Set variables
13
  $plugin_sc = $_POST['plugin_schedule'];
14
  $theme_sc = $_POST['theme_schedule'];
140
  </tr>
141
  </table>
142
 
143
+ <?php wp_nonce_field( 'cau_save_schedule' ); ?>
144
+
145
  <input type='submit' name='submit' id='submit' class='button button-primary' value='<?php _e( "Save changes", "companion-auto-update" ); ?>'>
146
 
147
  </form>
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.1
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.2
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.1
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 (February 10, 2018) =
81
  * New: Set the update time, many requested this feature so here it is :)
82
  * New: Update log
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.2
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.2 (February 10, 2018) =
81
+ * Security improvements
82
+
83
  = 3.0 (February 10, 2018) =
84
  * New: Set the update time, many requested this feature so here it is :)
85
  * New: Update log