BackUpWordPress - Version 3.13

Version Description

  • Security fix for heartbeat
Download this release

Release Info

Developer xibodevelopment
Plugin Icon 128x128 BackUpWordPress
Version 3.13
Comparing to
See all releases

Code changes from version 3.12 to 3.13

admin/actions.php CHANGED
@@ -537,6 +537,8 @@ add_action( 'load-' . HMBKP_ADMIN_PAGE, 'HM\BackUpWordPress\calculate_site_size'
537
  */
538
  function heartbeat_received( $response, $data ) {
539
 
 
 
540
  $response['heartbeat_interval'] = 'fast';
541
 
542
  if ( ! empty( $data['hmbkp_schedule_id'] ) ) {
537
  */
538
  function heartbeat_received( $response, $data ) {
539
 
540
+ if (!current_user_can('manage_options')) return $response;
541
+
542
  $response['heartbeat_interval'] = 'fast';
543
 
544
  if ( ! empty( $data['hmbkp_schedule_id'] ) ) {
backupwordpress.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: BackUpWordPress
4
  Plugin URI: https://updraftplus.com/backupwordpress/?afref=744
5
  Description: Simple automated backups of your WordPress powered website. Once activated you'll find me under <strong>Tools &rarr; Backups</strong>. On multisite, you'll find me under the Network Settings menu.
6
- Version: 3.12
7
  Author: XIBO Ltd
8
  Author URI: https://profiles.wordpress.org/xibodevelopment
9
  License: GPL-2+
3
  Plugin Name: BackUpWordPress
4
  Plugin URI: https://updraftplus.com/backupwordpress/?afref=744
5
  Description: Simple automated backups of your WordPress powered website. Once activated you'll find me under <strong>Tools &rarr; Backups</strong>. On multisite, you'll find me under the Network Settings menu.
6
+ Version: 3.13
7
  Author: XIBO Ltd
8
  Author URI: https://profiles.wordpress.org/xibodevelopment
9
  License: GPL-2+
classes/class-extensions.php CHANGED
@@ -32,9 +32,9 @@ final class Extensions {
32
 
33
  }
34
 
35
- private function __wakeup() {}
36
 
37
- private function __clone() {}
38
 
39
  /**
40
  * Returns the *Singleton* instance of this class.
32
 
33
  }
34
 
35
+ public function __wakeup() { throw new \Exception('may not be serialized'); }
36
 
37
+ public function __clone() { throw new \Exception('may not be cloned'); }
38
 
39
  /**
40
  * Returns the *Singleton* instance of this class.
classes/class-notices.php CHANGED
@@ -37,13 +37,12 @@ class Notices {
37
  * Private clone method to prevent cloning of the instance of the
38
  * *Singleton* instance.
39
  */
40
- private function __clone() {}
41
 
42
  /**
43
- * Private unserialize method to prevent unserializing of the *Singleton*
44
- * instance.
45
  */
46
- private function __wakeup() {}
47
 
48
  /**
49
  * Returns the *Singleton* instance of this class.
37
  * Private clone method to prevent cloning of the instance of the
38
  * *Singleton* instance.
39
  */
40
+ public function __clone() { throw new \Exception('may not be cloned'); }
41
 
42
  /**
43
+ * Prevent unserializing of the *Singleton* instance.
 
44
  */
45
+ public function __wakeup() { throw new \Exception('may not be serialized'); }
46
 
47
  /**
48
  * Returns the *Singleton* instance of this class.
classes/class-path.php CHANGED
@@ -45,16 +45,15 @@ class Path {
45
  protected function __construct() {}
46
 
47
  /**
48
- * Private clone method to prevent cloning of the instance of the
49
- * *Singleton* instance.
50
  */
51
- private function __clone() {}
52
 
53
  /**
54
  * Private unserialize method to prevent unserializing of the *Singleton*
55
  * instance.
56
  */
57
- private function __wakeup() {}
58
 
59
  /**
60
  * Returns the *Singleton* instance of this class.
45
  protected function __construct() {}
46
 
47
  /**
48
+ * Prevent cloning of the instance of the *Singleton* instance.
 
49
  */
50
+ public function __clone() { throw new \Exception('may not be cloned'); }
51
 
52
  /**
53
  * Private unserialize method to prevent unserializing of the *Singleton*
54
  * instance.
55
  */
56
+ public function __wakeup() { throw new \Exception('may not be serialized'); }
57
 
58
  /**
59
  * Returns the *Singleton* instance of this class.
classes/class-plugin.php CHANGED
@@ -6,7 +6,7 @@ namespace HM\BackUpWordPress;
6
  * Class Plugin
7
  */
8
  final class Plugin {
9
- const PLUGIN_VERSION = '3.12';
10
 
11
  /**
12
  * @var Plugin The singleton instance.
@@ -349,16 +349,16 @@ final class Plugin {
349
  /**
350
  * Function to run when the schedule cron fires.
351
  *
352
- * @param $schedule_id
353
  */
354
- public function schedule_hook_run( $schedule_id ) {
355
 
356
  if ( ! is_backup_possible() ) {
357
  return;
358
  }
359
 
360
  $schedules = Schedules::get_instance();
361
- $schedule = $schedules->get_schedule( $schedule_id );
362
 
363
  if ( ! $schedule ) {
364
  return;
6
  * Class Plugin
7
  */
8
  final class Plugin {
9
+ const PLUGIN_VERSION = '3.13';
10
 
11
  /**
12
  * @var Plugin The singleton instance.
349
  /**
350
  * Function to run when the schedule cron fires.
351
  *
352
+ * @param $id
353
  */
354
+ public function schedule_hook_run( $id ) {
355
 
356
  if ( ! is_backup_possible() ) {
357
  return;
358
  }
359
 
360
  $schedules = Schedules::get_instance();
361
+ $schedule = $schedules->get_schedule( $id );
362
 
363
  if ( ! $schedule ) {
364
  return;
languages/backupwordpress.pot CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the GPL-2+.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: BackUpWordPress 3.12\n"
6
  "Report-Msgid-Bugs-To: support@xibomarketing.com\n"
7
  "POT-Creation-Date: 2018-10-29 10:39:44+00:00\n"
8
  "MIME-Version: 1.0\n"
2
  # This file is distributed under the GPL-2+.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: BackUpWordPress 3\n"
6
  "Report-Msgid-Bugs-To: support@xibomarketing.com\n"
7
  "POT-Creation-Date: 2018-10-29 10:39:44+00:00\n"
8
  "MIME-Version: 1.0\n"
readme.txt CHANGED
@@ -3,13 +3,13 @@ Contributors: xibodevelopment, willmot, dashaluna, pauldewouters, joehoyle, matt
3
  Tags: back up, backup, backups, database, zip, db, files, archive, wp-cli, xibodevelopment
4
  Requires at least: 3.9
5
  Tested up to: 5.9
6
- Stable tag: 3.12
7
 
8
  Simple automated backups of your WordPress-powered website.
9
 
10
  == Description ==
11
 
12
- BackupWordPress was created by our friends at HumanMade but is now under new ownership. We're committed to opensource and WordPress and will provide free support for the many BackupWordPress fans.
13
  We'll make occasional updates to the free software - please send us any patches you'd like to see released here: [https://github.com/orgs/xibodevelopment/](https://github.com/orgs/xibodevelopment/)
14
 
15
  However, we'll no longer be selling or supporting the paid add-ons (e.g. for backups to Dropbox and Google Drive). It's certainly a good idea to backup to cloud storage to protect against server-wide risks.
@@ -117,6 +117,10 @@ For development issues, feature requests or anybody wishing to help out with dev
117
 
118
  == Upgrade Notice ==
119
 
 
 
 
 
120
  = 3.4 =
121
 
122
  * This version introduces a major refactoring of the code responsible for the core backup engine. We made sure to write
@@ -157,6 +161,12 @@ users should see major improvements to reliability.
157
 
158
  == Changelog ==
159
 
 
 
 
 
 
 
160
  ### 3.12 / 2022-01-27
161
 
162
  * Updated to WP 5.9
@@ -1317,7 +1327,7 @@ Fix some silly 1.0 bugs
1317
 
1318
  #### 1.0
1319
 
1320
- 1.0 represents a total rewrite & rethink of the BackUpWordPress plugin with a focus on making it "Just Work". The management and development of the plugin has been taken over by [XIBO Development](http://hmn.md) the chaps behind [WP Remote](https://wpremote.com)
1321
 
1322
  #### Previous
1323
 
3
  Tags: back up, backup, backups, database, zip, db, files, archive, wp-cli, xibodevelopment
4
  Requires at least: 3.9
5
  Tested up to: 5.9
6
+ Stable tag: 3.13
7
 
8
  Simple automated backups of your WordPress-powered website.
9
 
10
  == Description ==
11
 
12
+ BackupWordPress was created by our friends at Human Made but is now under new ownership. We're committed to opensource and WordPress and will provide free support for the many BackupWordPress fans.
13
  We'll make occasional updates to the free software - please send us any patches you'd like to see released here: [https://github.com/orgs/xibodevelopment/](https://github.com/orgs/xibodevelopment/)
14
 
15
  However, we'll no longer be selling or supporting the paid add-ons (e.g. for backups to Dropbox and Google Drive). It's certainly a good idea to backup to cloud storage to protect against server-wide risks.
117
 
118
  == Upgrade Notice ==
119
 
120
+ = 3.13 =
121
+
122
+ * Security fix for heartbeat
123
+
124
  = 3.4 =
125
 
126
  * This version introduces a major refactoring of the code responsible for the core backup engine. We made sure to write
161
 
162
  == Changelog ==
163
 
164
+ ### 3.13 / 2022-02-23
165
+
166
+ * Security fix for heartbeat
167
+ * Correct spelling of Human Made
168
+ * PHP 8.0 compatibility
169
+
170
  ### 3.12 / 2022-01-27
171
 
172
  * Updated to WP 5.9
1327
 
1328
  #### 1.0
1329
 
1330
+ 1.0 represents a total rewrite & rethink of the BackUpWordPress plugin with a focus on making it "Just Work". The management and development of the plugin has been taken over by [[Human Made](http://hmn.md) the chaps behind [WP Remote](https://wpremote.com)
1331
 
1332
  #### Previous
1333