Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid - Version 1.12.2

Version Description

Release date: December 13th, 2019

  • Bug fix: Fixed filtering of archive attributes.
Download this release

Release Info

Developer boldgrid
Plugin Icon 128x128 Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid
Version 1.12.2
Comparing to
See all releases

Code changes from version 1.12.1 to 1.12.2

admin/class-boldgrid-backup-admin-archive.php CHANGED
@@ -467,15 +467,15 @@ class Boldgrid_Backup_Admin_Archive {
467
  *
468
  * Allows operations to be performed on attribute changes and alter the value depending on results.
469
  *
470
- * @since 1.12.0
471
  *
472
- * @param string $filepath Archive filepath.
473
- * @param string $key Key name.
474
  * @param string $value New value.
475
  * @param string $old_value Old value.
 
 
476
  * @return string
477
  */
478
- $value = apply_filters( 'boldgrid_backup_archive_set_attribute', $this->filepath, $key, $value, $old_value );
479
 
480
  $this->log[ $key ] = $value;
481
 
467
  *
468
  * Allows operations to be performed on attribute changes and alter the value depending on results.
469
  *
470
+ * @since 1.12.2
471
  *
 
 
472
  * @param string $value New value.
473
  * @param string $old_value Old value.
474
+ * @param string $key Key name.
475
+ * @param string $filepath Archive filepath.
476
  * @return string
477
  */
478
+ $value = apply_filters( 'boldgrid_backup_archive_update_attribute', $value, $old_value, $key, $this->filepath );
479
 
480
  $this->log[ $key ] = $value;
481
 
admin/class-boldgrid-backup-admin-jobs.php CHANGED
@@ -232,17 +232,10 @@ class Boldgrid_Backup_Admin_Jobs {
232
  * call this method, which will handle the rest.
233
  *
234
  * @since 1.5.2
235
- *
236
- * @see Boldgrid_Backup_Admin_Cron::is_valid_call()
237
  */
238
  public function run() {
239
  $this->set_jobs();
240
 
241
- // If not logged-in, then require a matching "id".
242
- if ( ! $this->core->cron->is_valid_call() ) {
243
- wp_die( esc_html__( 'Error: Invalid request.', 'boldgrid-backup' ) );
244
- }
245
-
246
  // If there are no jobs or already running, then abort.
247
  if ( empty( $this->jobs ) || $this->is_running() ) {
248
  wp_die();
232
  * call this method, which will handle the rest.
233
  *
234
  * @since 1.5.2
 
 
235
  */
236
  public function run() {
237
  $this->set_jobs();
238
 
 
 
 
 
 
239
  // If there are no jobs or already running, then abort.
240
  if ( empty( $this->jobs ) || $this->is_running() ) {
241
  wp_die();
boldgrid-backup.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: Total Upkeep
17
  * Plugin URI: https://www.boldgrid.com/boldgrid-backup/
18
  * Description: Automated backups, remote backup to Amazon S3 and Google Drive, stop website crashes before they happen and more. Total Upkeep is the backup solution you need.
19
- * Version: 1.12.1
20
  * Author: BoldGrid
21
  * Author URI: https://www.boldgrid.com/
22
  * License: GPL-2.0+
16
  * Plugin Name: Total Upkeep
17
  * Plugin URI: https://www.boldgrid.com/boldgrid-backup/
18
  * Description: Automated backups, remote backup to Amazon S3 and Google Drive, stop website crashes before they happen and more. Total Upkeep is the backup solution you need.
19
+ * Version: 1.12.2
20
  * Author: BoldGrid
21
  * Author URI: https://www.boldgrid.com/
22
  * License: GPL-2.0+
coverage.xml CHANGED
@@ -1,6 +1,6 @@
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1574792655">
3
- <project timestamp="1574792655">
4
  <package name="Boldgrid\Backup\Admin\Card">
5
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-backups.php">
6
  <class name="Backups" namespace="Boldgrid\Backup\Admin\Card">
@@ -4808,7 +4808,7 @@
4808
  </file>
4809
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-jobs.php">
4810
  <class name="Boldgrid_Backup_Admin_Jobs" namespace="global" fullPackage="Boldgrid.Backup.Admin">
4811
- <metrics complexity="29" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="96" coveredstatements="2" elements="105" coveredelements="3"/>
4812
  </class>
4813
  <line num="68" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="17"/>
4814
  <line num="69" type="stmt" count="17"/>
@@ -4883,39 +4883,36 @@
4883
  <line num="221" type="stmt" count="0"/>
4884
  <line num="223" type="stmt" count="0"/>
4885
  <line num="225" type="stmt" count="0"/>
4886
- <line num="238" type="method" name="run" visibility="public" complexity="9" crap="90" count="0"/>
4887
- <line num="239" type="stmt" count="0"/>
 
 
4888
  <line num="242" type="stmt" count="0"/>
4889
- <line num="243" type="stmt" count="0"/>
4890
  <line num="244" type="stmt" count="0"/>
4891
- <line num="247" type="stmt" count="0"/>
4892
- <line num="248" type="stmt" count="0"/>
4893
  <line num="249" type="stmt" count="0"/>
4894
- <line num="251" type="stmt" count="0"/>
4895
  <line num="252" type="stmt" count="0"/>
4896
- <line num="253" type="stmt" count="0"/>
 
4897
  <line num="256" type="stmt" count="0"/>
4898
- <line num="257" type="stmt" count="0"/>
4899
  <line num="259" type="stmt" count="0"/>
4900
  <line num="261" type="stmt" count="0"/>
4901
  <line num="262" type="stmt" count="0"/>
4902
  <line num="263" type="stmt" count="0"/>
4903
  <line num="265" type="stmt" count="0"/>
4904
  <line num="266" type="stmt" count="0"/>
4905
- <line num="268" type="stmt" count="0"/>
4906
- <line num="269" type="stmt" count="0"/>
4907
- <line num="270" type="stmt" count="0"/>
4908
- <line num="272" type="stmt" count="0"/>
4909
- <line num="273" type="stmt" count="0"/>
4910
- <line num="280" type="method" name="save_jobs" visibility="public" complexity="1" crap="2" count="0"/>
4911
- <line num="281" type="stmt" count="0"/>
4912
- <line num="282" type="stmt" count="0"/>
4913
- <line num="289" type="method" name="set_jobs" visibility="public" complexity="2" crap="6" count="0"/>
4914
- <line num="290" type="stmt" count="0"/>
4915
- <line num="291" type="stmt" count="0"/>
4916
- <line num="294" type="stmt" count="0"/>
4917
- <line num="295" type="stmt" count="0"/>
4918
- <metrics loc="296" ncloc="166" classes="1" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="96" coveredstatements="2" elements="105" coveredelements="3"/>
4919
  </file>
4920
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-notice.php">
4921
  <class name="Boldgrid_Backup_Admin_Notice" namespace="global" fullPackage="Boldgrid.Backup.Admin">
@@ -72625,7 +72622,7 @@
72625
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
72626
  </file>
72627
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
72628
- <class name="ComposerStaticInitbdff34c9ebd7cddcb24975b5182d07cb" namespace="Composer\Autoload">
72629
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
72630
  </class>
72631
  <line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
@@ -72717,7 +72714,7 @@
72717
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
72718
  </file>
72719
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
72720
- <class name="ComposerAutoloaderInitbdff34c9ebd7cddcb24975b5182d07cb" namespace="global">
72721
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
72722
  </class>
72723
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
@@ -91717,6 +91714,6 @@
91717
  <line num="16" type="stmt" count="0"/>
91718
  <metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
91719
  </file>
91720
- <metrics files="905" loc="182814" ncloc="111927" classes="818" methods="3307" coveredmethods="167" conditionals="0" coveredconditionals="0" statements="82832" coveredstatements="2747" elements="86139" coveredelements="2914"/>
91721
  </project>
91722
  </coverage>
1
  <?xml version="1.0" encoding="UTF-8"?>
2
+ <coverage generated="1576270903">
3
+ <project timestamp="1576270903">
4
  <package name="Boldgrid\Backup\Admin\Card">
5
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-backups.php">
6
  <class name="Backups" namespace="Boldgrid\Backup\Admin\Card">
4808
  </file>
4809
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-jobs.php">
4810
  <class name="Boldgrid_Backup_Admin_Jobs" namespace="global" fullPackage="Boldgrid.Backup.Admin">
4811
+ <metrics complexity="28" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="93" coveredstatements="2" elements="102" coveredelements="3"/>
4812
  </class>
4813
  <line num="68" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="17"/>
4814
  <line num="69" type="stmt" count="17"/>
4883
  <line num="221" type="stmt" count="0"/>
4884
  <line num="223" type="stmt" count="0"/>
4885
  <line num="225" type="stmt" count="0"/>
4886
+ <line num="236" type="method" name="run" visibility="public" complexity="8" crap="72" count="0"/>
4887
+ <line num="237" type="stmt" count="0"/>
4888
+ <line num="240" type="stmt" count="0"/>
4889
+ <line num="241" type="stmt" count="0"/>
4890
  <line num="242" type="stmt" count="0"/>
 
4891
  <line num="244" type="stmt" count="0"/>
4892
+ <line num="245" type="stmt" count="0"/>
4893
+ <line num="246" type="stmt" count="0"/>
4894
  <line num="249" type="stmt" count="0"/>
4895
+ <line num="250" type="stmt" count="0"/>
4896
  <line num="252" type="stmt" count="0"/>
4897
+ <line num="254" type="stmt" count="0"/>
4898
+ <line num="255" type="stmt" count="0"/>
4899
  <line num="256" type="stmt" count="0"/>
4900
+ <line num="258" type="stmt" count="0"/>
4901
  <line num="259" type="stmt" count="0"/>
4902
  <line num="261" type="stmt" count="0"/>
4903
  <line num="262" type="stmt" count="0"/>
4904
  <line num="263" type="stmt" count="0"/>
4905
  <line num="265" type="stmt" count="0"/>
4906
  <line num="266" type="stmt" count="0"/>
4907
+ <line num="273" type="method" name="save_jobs" visibility="public" complexity="1" crap="2" count="0"/>
4908
+ <line num="274" type="stmt" count="0"/>
4909
+ <line num="275" type="stmt" count="0"/>
4910
+ <line num="282" type="method" name="set_jobs" visibility="public" complexity="2" crap="6" count="0"/>
4911
+ <line num="283" type="stmt" count="0"/>
4912
+ <line num="284" type="stmt" count="0"/>
4913
+ <line num="287" type="stmt" count="0"/>
4914
+ <line num="288" type="stmt" count="0"/>
4915
+ <metrics loc="289" ncloc="163" classes="1" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="93" coveredstatements="2" elements="102" coveredelements="3"/>
 
 
 
 
 
4916
  </file>
4917
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-notice.php">
4918
  <class name="Boldgrid_Backup_Admin_Notice" namespace="global" fullPackage="Boldgrid.Backup.Admin">
72622
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
72623
  </file>
72624
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
72625
+ <class name="ComposerStaticInitaa67122c232c29f3839c669da76fdc18" namespace="Composer\Autoload">
72626
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
72627
  </class>
72628
  <line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
72714
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
72715
  </file>
72716
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
72717
+ <class name="ComposerAutoloaderInitaa67122c232c29f3839c669da76fdc18" namespace="global">
72718
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
72719
  </class>
72720
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
91714
  <line num="16" type="stmt" count="0"/>
91715
  <metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
91716
  </file>
91717
+ <metrics files="905" loc="182807" ncloc="111924" classes="818" methods="3307" coveredmethods="167" conditionals="0" coveredconditionals="0" statements="82829" coveredstatements="2747" elements="86136" coveredelements="2914"/>
91718
  </project>
91719
  </coverage>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: backup, cloud backup, database backup, restore, wordpress backup
4
  Requires at least: 4.4
5
  Tested up to: 5.3
6
  Requires PHP: 5.4
7
- Stable tag: 1.12.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -132,6 +132,12 @@ Have a problem? First, take a look at our [Getting Started](https://www.boldgrid
132
 
133
  == Changelog ==
134
 
 
 
 
 
 
 
135
  = 1.12.1 =
136
 
137
  Release date: November 26th, 2019
4
  Requires at least: 4.4
5
  Tested up to: 5.3
6
  Requires PHP: 5.4
7
+ Stable tag: 1.12.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
132
 
133
  == Changelog ==
134
 
135
+ = 1.12.2 =
136
+
137
+ Release date: December 13th, 2019
138
+
139
+ * Bug fix: Fixed filtering of archive attributes.
140
+
141
  = 1.12.1 =
142
 
143
  Release date: November 26th, 2019
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitbdff34c9ebd7cddcb24975b5182d07cb::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitaa67122c232c29f3839c669da76fdc18::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitbdff34c9ebd7cddcb24975b5182d07cb
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInitbdff34c9ebd7cddcb24975b5182d07cb
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInitbdff34c9ebd7cddcb24975b5182d07cb', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInitbdff34c9ebd7cddcb24975b5182d07cb', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInitbdff34c9ebd7cddcb24975b5182d07cb::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderInitbdff34c9ebd7cddcb24975b5182d07cb
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInitbdff34c9ebd7cddcb24975b5182d07cb::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequirebdff34c9ebd7cddcb24975b5182d07cb($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequirebdff34c9ebd7cddcb24975b5182d07cb($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitaa67122c232c29f3839c669da76fdc18
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInitaa67122c232c29f3839c669da76fdc18', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInitaa67122c232c29f3839c669da76fdc18', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInitaa67122c232c29f3839c669da76fdc18::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
+ $includeFiles = Composer\Autoload\ComposerStaticInitaa67122c232c29f3839c669da76fdc18::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequireaa67122c232c29f3839c669da76fdc18($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequireaa67122c232c29f3839c669da76fdc18($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitbdff34c9ebd7cddcb24975b5182d07cb
8
  {
9
  public static $files = array (
10
  'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
@@ -91,9 +91,9 @@ class ComposerStaticInitbdff34c9ebd7cddcb24975b5182d07cb
91
  public static function getInitializer(ClassLoader $loader)
92
  {
93
  return \Closure::bind(function () use ($loader) {
94
- $loader->prefixLengthsPsr4 = ComposerStaticInitbdff34c9ebd7cddcb24975b5182d07cb::$prefixLengthsPsr4;
95
- $loader->prefixDirsPsr4 = ComposerStaticInitbdff34c9ebd7cddcb24975b5182d07cb::$prefixDirsPsr4;
96
- $loader->classMap = ComposerStaticInitbdff34c9ebd7cddcb24975b5182d07cb::$classMap;
97
 
98
  }, null, ClassLoader::class);
99
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitaa67122c232c29f3839c669da76fdc18
8
  {
9
  public static $files = array (
10
  'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
91
  public static function getInitializer(ClassLoader $loader)
92
  {
93
  return \Closure::bind(function () use ($loader) {
94
+ $loader->prefixLengthsPsr4 = ComposerStaticInitaa67122c232c29f3839c669da76fdc18::$prefixLengthsPsr4;
95
+ $loader->prefixDirsPsr4 = ComposerStaticInitaa67122c232c29f3839c669da76fdc18::$prefixDirsPsr4;
96
+ $loader->classMap = ComposerStaticInitaa67122c232c29f3839c669da76fdc18::$classMap;
97
 
98
  }, null, ClassLoader::class);
99
  }