Version Description
Release date: September 26th, 2019
- Bug fix: Improve logic that checks if scheduled backups are enabled.
Download this release
Release Info
Developer | boldgrid |
Plugin | Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid |
Version | 1.11.4 |
Comparing to | |
See all releases |
Code changes from version 1.11.3 to 1.11.4
- admin/card/feature/class-scheduled-backups.php +16 -3
- boldgrid-backup.php +1 -1
- coverage.xml +22 -22
- readme.txt +7 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
admin/card/feature/class-scheduled-backups.php
CHANGED
@@ -34,9 +34,22 @@ class Scheduled_Backups extends \Boldgrid\Library\Library\Ui\Feature {
|
|
34 |
|
35 |
$this->title = esc_html__( 'Scheduled Backups', 'boldgrid-backup' );
|
36 |
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
$next_runtime = $backup_entry->get_next_runtime();
|
41 |
|
42 |
$this->content = '<p>' . wp_kses(
|
34 |
|
35 |
$this->title = esc_html__( 'Scheduled Backups', 'boldgrid-backup' );
|
36 |
|
37 |
+
$cron = new \Boldgrid\Backup\Admin\Cron();
|
38 |
+
$backup_entry = $cron->get_entry( 'backup' );
|
39 |
+
|
40 |
+
/*
|
41 |
+
* If a user does not have backups scheduled, suggest they schedule them.
|
42 |
+
*
|
43 |
+
* As of 1.11.4, in addition to checking if a schedule is saved in the settings, we also ensure
|
44 |
+
* that the backup cron can be found. We need to check for the scenario in which the user has
|
45 |
+
* manually deleted the cron entry yet the settings say backups are scheduled.
|
46 |
+
*
|
47 |
+
* In some cases where the settings say backups are scheduled but the cron doesn't actually
|
48 |
+
* exist, false positives may be given or errors triggered. We may want to explore the idea
|
49 |
+
* of showing an admin notice. For now, if this scenario exists, the dashboard will tell the
|
50 |
+
* user to schedule backups, and resaving the settings will resave the cron entry.
|
51 |
+
*/
|
52 |
+
if ( $core->settings->has_scheduled_backups() && $backup_entry->is_set() ) {
|
53 |
$next_runtime = $backup_entry->get_next_runtime();
|
54 |
|
55 |
$this->content = '<p>' . wp_kses(
|
boldgrid-backup.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* Plugin Name: BoldGrid Backup
|
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. BoldGrid Backup is the backup solution you need.
|
19 |
-
* Version: 1.11.
|
20 |
* Author: BoldGrid
|
21 |
* Author URI: https://www.boldgrid.com/
|
22 |
* License: GPL-2.0+
|
16 |
* Plugin Name: BoldGrid Backup
|
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. BoldGrid Backup is the backup solution you need.
|
19 |
+
* Version: 1.11.4
|
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="
|
3 |
-
<project timestamp="
|
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">
|
@@ -237,34 +237,22 @@
|
|
237 |
</file>
|
238 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/feature/class-scheduled-backups.php">
|
239 |
<class name="Scheduled_Backups" namespace="Boldgrid\Backup\Admin\Card\Feature" fullPackage="Scheduled">
|
240 |
-
<metrics complexity="
|
241 |
</class>
|
242 |
-
<line num="30" type="method" name="init" visibility="public" complexity="
|
243 |
<line num="31" type="stmt" count="0"/>
|
244 |
<line num="33" type="stmt" count="0"/>
|
245 |
<line num="35" type="stmt" count="0"/>
|
246 |
<line num="37" type="stmt" count="0"/>
|
247 |
<line num="38" type="stmt" count="0"/>
|
248 |
-
<line num="39" type="stmt" count="0"/>
|
249 |
-
<line num="40" type="stmt" count="0"/>
|
250 |
-
<line num="42" type="stmt" count="0"/>
|
251 |
-
<line num="43" type="stmt" count="0"/>
|
252 |
-
<line num="45" type="stmt" count="0"/>
|
253 |
-
<line num="46" type="stmt" count="0"/>
|
254 |
-
<line num="47" type="stmt" count="0"/>
|
255 |
-
<line num="48" type="stmt" count="0"/>
|
256 |
-
<line num="49" type="stmt" count="0"/>
|
257 |
-
<line num="50" type="stmt" count="0"/>
|
258 |
-
<line num="51" type="stmt" count="0"/>
|
259 |
<line num="52" type="stmt" count="0"/>
|
260 |
<line num="53" type="stmt" count="0"/>
|
261 |
-
<line num="54" type="stmt" count="0"/>
|
262 |
<line num="55" type="stmt" count="0"/>
|
263 |
<line num="56" type="stmt" count="0"/>
|
264 |
-
<line num="57" type="stmt" count="0"/>
|
265 |
<line num="58" type="stmt" count="0"/>
|
266 |
<line num="59" type="stmt" count="0"/>
|
267 |
<line num="60" type="stmt" count="0"/>
|
|
|
268 |
<line num="62" type="stmt" count="0"/>
|
269 |
<line num="63" type="stmt" count="0"/>
|
270 |
<line num="64" type="stmt" count="0"/>
|
@@ -277,7 +265,19 @@
|
|
277 |
<line num="71" type="stmt" count="0"/>
|
278 |
<line num="72" type="stmt" count="0"/>
|
279 |
<line num="73" type="stmt" count="0"/>
|
280 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
</file>
|
282 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/feature/class-sign-up.php">
|
283 |
<class name="Sign_Up" namespace="Boldgrid\Backup\Admin\Card\Feature" fullPackage="Sign">
|
@@ -2731,7 +2731,7 @@
|
|
2731 |
<line num="1793" type="stmt" count="4"/>
|
2732 |
<line num="1794" type="stmt" count="0"/>
|
2733 |
<line num="1796" type="stmt" count="4"/>
|
2734 |
-
<line num="1797" type="stmt" count="
|
2735 |
<line num="1800" type="stmt" count="4"/>
|
2736 |
<line num="1801" type="stmt" count="3"/>
|
2737 |
<line num="1804" type="stmt" count="4"/>
|
@@ -71371,7 +71371,7 @@
|
|
71371 |
<metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
|
71372 |
</file>
|
71373 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
|
71374 |
-
<class name="
|
71375 |
<metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
|
71376 |
</class>
|
71377 |
<line num="90" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
|
@@ -71462,7 +71462,7 @@
|
|
71462 |
<metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
|
71463 |
</file>
|
71464 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
|
71465 |
-
<class name="
|
71466 |
<metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
|
71467 |
</class>
|
71468 |
<line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
|
@@ -90360,6 +90360,6 @@
|
|
90360 |
<line num="16" type="stmt" count="0"/>
|
90361 |
<metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
|
90362 |
</file>
|
90363 |
-
<metrics files="899" loc="
|
90364 |
</project>
|
90365 |
</coverage>
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<coverage generated="1569523141">
|
3 |
+
<project timestamp="1569523141">
|
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">
|
237 |
</file>
|
238 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/feature/class-scheduled-backups.php">
|
239 |
<class name="Scheduled_Backups" namespace="Boldgrid\Backup\Admin\Card\Feature" fullPackage="Scheduled">
|
240 |
+
<metrics complexity="3" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="37" coveredstatements="0" elements="38" coveredelements="0"/>
|
241 |
</class>
|
242 |
+
<line num="30" type="method" name="init" visibility="public" complexity="3" crap="12" count="0"/>
|
243 |
<line num="31" type="stmt" count="0"/>
|
244 |
<line num="33" type="stmt" count="0"/>
|
245 |
<line num="35" type="stmt" count="0"/>
|
246 |
<line num="37" type="stmt" count="0"/>
|
247 |
<line num="38" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
248 |
<line num="52" type="stmt" count="0"/>
|
249 |
<line num="53" type="stmt" count="0"/>
|
|
|
250 |
<line num="55" type="stmt" count="0"/>
|
251 |
<line num="56" type="stmt" count="0"/>
|
|
|
252 |
<line num="58" type="stmt" count="0"/>
|
253 |
<line num="59" type="stmt" count="0"/>
|
254 |
<line num="60" type="stmt" count="0"/>
|
255 |
+
<line num="61" type="stmt" count="0"/>
|
256 |
<line num="62" type="stmt" count="0"/>
|
257 |
<line num="63" type="stmt" count="0"/>
|
258 |
<line num="64" type="stmt" count="0"/>
|
265 |
<line num="71" type="stmt" count="0"/>
|
266 |
<line num="72" type="stmt" count="0"/>
|
267 |
<line num="73" type="stmt" count="0"/>
|
268 |
+
<line num="75" type="stmt" count="0"/>
|
269 |
+
<line num="76" type="stmt" count="0"/>
|
270 |
+
<line num="77" type="stmt" count="0"/>
|
271 |
+
<line num="78" type="stmt" count="0"/>
|
272 |
+
<line num="79" type="stmt" count="0"/>
|
273 |
+
<line num="80" type="stmt" count="0"/>
|
274 |
+
<line num="81" type="stmt" count="0"/>
|
275 |
+
<line num="82" type="stmt" count="0"/>
|
276 |
+
<line num="83" type="stmt" count="0"/>
|
277 |
+
<line num="84" type="stmt" count="0"/>
|
278 |
+
<line num="85" type="stmt" count="0"/>
|
279 |
+
<line num="86" type="stmt" count="0"/>
|
280 |
+
<metrics loc="87" ncloc="47" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="37" coveredstatements="0" elements="38" coveredelements="0"/>
|
281 |
</file>
|
282 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/feature/class-sign-up.php">
|
283 |
<class name="Sign_Up" namespace="Boldgrid\Backup\Admin\Card\Feature" fullPackage="Sign">
|
2731 |
<line num="1793" type="stmt" count="4"/>
|
2732 |
<line num="1794" type="stmt" count="0"/>
|
2733 |
<line num="1796" type="stmt" count="4"/>
|
2734 |
+
<line num="1797" type="stmt" count="2"/>
|
2735 |
<line num="1800" type="stmt" count="4"/>
|
2736 |
<line num="1801" type="stmt" count="3"/>
|
2737 |
<line num="1804" type="stmt" count="4"/>
|
71371 |
<metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
|
71372 |
</file>
|
71373 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
|
71374 |
+
<class name="ComposerStaticInitb8c66b26e913281de0004071d23531d6" namespace="Composer\Autoload">
|
71375 |
<metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
|
71376 |
</class>
|
71377 |
<line num="90" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
|
71462 |
<metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
|
71463 |
</file>
|
71464 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
|
71465 |
+
<class name="ComposerAutoloaderInitb8c66b26e913281de0004071d23531d6" namespace="global">
|
71466 |
<metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
|
71467 |
</class>
|
71468 |
<line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
|
90360 |
<line num="16" type="stmt" count="0"/>
|
90361 |
<metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
|
90362 |
</file>
|
90363 |
+
<metrics files="899" loc="180575" ncloc="110383" classes="813" methods="3280" coveredmethods="167" conditionals="0" coveredconditionals="0" statements="81535" coveredstatements="2708" elements="84815" coveredelements="2875"/>
|
90364 |
</project>
|
90365 |
</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.2
|
6 |
Requires PHP: 5.4
|
7 |
-
Stable tag: 1.11.
|
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.11.3 =
|
136 |
|
137 |
Release date: September 26th, 2019
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 5.2
|
6 |
Requires PHP: 5.4
|
7 |
+
Stable tag: 1.11.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
132 |
|
133 |
== Changelog ==
|
134 |
|
135 |
+
= 1.11.4 =
|
136 |
+
|
137 |
+
Release date: September 26th, 2019
|
138 |
+
|
139 |
+
* Bug fix: Improve logic that checks if scheduled backups are enabled.
|
140 |
+
|
141 |
= 1.11.3 =
|
142 |
|
143 |
Release date: September 26th, 2019
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitb8c66b26e913281de0004071d23531d6::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInitd33c274e526886111202ad28a0c7b9f2
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
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\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
@@ -48,19 +48,19 @@ class ComposerAutoloaderInitd33c274e526886111202ad28a0c7b9f2
|
|
48 |
$loader->register(true);
|
49 |
|
50 |
if ($useStaticLoader) {
|
51 |
-
$includeFiles = Composer\Autoload\
|
52 |
} else {
|
53 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
54 |
}
|
55 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
56 |
-
|
57 |
}
|
58 |
|
59 |
return $loader;
|
60 |
}
|
61 |
}
|
62 |
|
63 |
-
function
|
64 |
{
|
65 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
66 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitb8c66b26e913281de0004071d23531d6
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInitb8c66b26e913281de0004071d23531d6', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitb8c66b26e913281de0004071d23531d6', '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\ComposerStaticInitb8c66b26e913281de0004071d23531d6::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\ComposerStaticInitb8c66b26e913281de0004071d23531d6::$files;
|
52 |
} else {
|
53 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
54 |
}
|
55 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
56 |
+
composerRequireb8c66b26e913281de0004071d23531d6($fileIdentifier, $file);
|
57 |
}
|
58 |
|
59 |
return $loader;
|
60 |
}
|
61 |
}
|
62 |
|
63 |
+
function composerRequireb8c66b26e913281de0004071d23531d6($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
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
|
@@ -90,9 +90,9 @@ class ComposerStaticInitd33c274e526886111202ad28a0c7b9f2
|
|
90 |
public static function getInitializer(ClassLoader $loader)
|
91 |
{
|
92 |
return \Closure::bind(function () use ($loader) {
|
93 |
-
$loader->prefixLengthsPsr4 =
|
94 |
-
$loader->prefixDirsPsr4 =
|
95 |
-
$loader->classMap =
|
96 |
|
97 |
}, null, ClassLoader::class);
|
98 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitb8c66b26e913281de0004071d23531d6
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
|
90 |
public static function getInitializer(ClassLoader $loader)
|
91 |
{
|
92 |
return \Closure::bind(function () use ($loader) {
|
93 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitb8c66b26e913281de0004071d23531d6::$prefixLengthsPsr4;
|
94 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitb8c66b26e913281de0004071d23531d6::$prefixDirsPsr4;
|
95 |
+
$loader->classMap = ComposerStaticInitb8c66b26e913281de0004071d23531d6::$classMap;
|
96 |
|
97 |
}, null, ClassLoader::class);
|
98 |
}
|