Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid - Version issue-494-202112031138

Version Description

Download this release

Release Info

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

Code changes from version issue-494-202112011618 to issue-494-202112031138

admin/class-boldgrid-backup-admin-core.php CHANGED
@@ -1389,6 +1389,8 @@ class Boldgrid_Backup_Admin_Core {
1389
  global $wp_filesystem;
1390
 
1391
  // Validate input.
 
 
1392
  $is_readable_time_start = microtime( true );
1393
 
1394
  if ( empty( $dirpath ) || ! $wp_filesystem->is_readable( $dirpath ) ) {
@@ -1397,7 +1399,9 @@ class Boldgrid_Backup_Admin_Core {
1397
 
1398
  $is_readable_time_end = microtime( true );
1399
 
1400
- $this->logger->add( 'is_readable Duration: ' . ( $is_readable_time_end - $is_readable_time_start ) );
 
 
1401
 
1402
  // Remove any training slash in dirpath.
1403
  $dirpath = untrailingslashit( $dirpath );
@@ -1408,13 +1412,17 @@ class Boldgrid_Backup_Admin_Core {
1408
  }
1409
 
1410
  // Get the non-recursive directory listing for the specified path.
 
 
1411
  $dirlist_time_start = microtime( true );
1412
 
1413
  $dirlist = $wp_filesystem->dirlist( $dirpath, true, false );
1414
 
1415
  $dirlist_time_end = microtime( true );
1416
 
1417
- $this->logger->add( '$dirlist Duration: ' . ( $dirlist_time_end - $dirlist_time_start ) );
 
 
1418
 
1419
  // Initialize $filelist.
1420
  $filelist = [];
@@ -1755,7 +1763,7 @@ class Boldgrid_Backup_Admin_Core {
1755
  $this->logger->add( 'Dump of database complete! $status = ' . print_r( $status, 1 ) ); // phpcs:ignore
1756
  $this->logger->add_memory();
1757
  $this->logger->add_separator();
1758
- $this->logger->add( 'after separator' );
1759
  if ( false === $status || ! empty( $status['error'] ) ) {
1760
  $error = ! empty( $status['error'] ) ? $status['error'] : __( 'An unknown error occurred when backing up the database.', 'boldgrid-backup' );
1761
  $this->logger->add( $error );
1389
  global $wp_filesystem;
1390
 
1391
  // Validate input.
1392
+ static $is_readable_total_time = 0;
1393
+
1394
  $is_readable_time_start = microtime( true );
1395
 
1396
  if ( empty( $dirpath ) || ! $wp_filesystem->is_readable( $dirpath ) ) {
1399
 
1400
  $is_readable_time_end = microtime( true );
1401
 
1402
+ $is_readable_total_time += ( $is_readable_time_end - $is_readable_time_start );
1403
+
1404
+ $this->logger->add( 'is_readable Duration: ' . $is_readable_total_time );
1405
 
1406
  // Remove any training slash in dirpath.
1407
  $dirpath = untrailingslashit( $dirpath );
1412
  }
1413
 
1414
  // Get the non-recursive directory listing for the specified path.
1415
+ static $dirlist_total_time = 0;
1416
+
1417
  $dirlist_time_start = microtime( true );
1418
 
1419
  $dirlist = $wp_filesystem->dirlist( $dirpath, true, false );
1420
 
1421
  $dirlist_time_end = microtime( true );
1422
 
1423
+ $dirlist_total_time += ( $dirlist_time_end - $dirlist_time_start );
1424
+
1425
+ $this->logger->add( '$dirlist Duration: ' . $dirlist_total_time );
1426
 
1427
  // Initialize $filelist.
1428
  $filelist = [];
1763
  $this->logger->add( 'Dump of database complete! $status = ' . print_r( $status, 1 ) ); // phpcs:ignore
1764
  $this->logger->add_memory();
1765
  $this->logger->add_separator();
1766
+
1767
  if ( false === $status || ! empty( $status['error'] ) ) {
1768
  $error = ! empty( $status['error'] ) ? $status['error'] : __( 'An unknown error occurred when backing up the database.', 'boldgrid-backup' );
1769
  $this->logger->add( $error );
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit91078cb6ab41234844508601a40b8212::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitc18984447c602db362ce30c90c3e6912::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit91078cb6ab41234844508601a40b8212
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit91078cb6ab41234844508601a40b8212
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit91078cb6ab41234844508601a40b8212', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInit91078cb6ab41234844508601a40b8212', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit91078cb6ab41234844508601a40b8212::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInit91078cb6ab41234844508601a40b8212
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInit91078cb6ab41234844508601a40b8212::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequire91078cb6ab41234844508601a40b8212($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequire91078cb6ab41234844508601a40b8212($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitc18984447c602db362ce30c90c3e6912
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitc18984447c602db362ce30c90c3e6912', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitc18984447c602db362ce30c90c3e6912', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInitc18984447c602db362ce30c90c3e6912::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
+ $includeFiles = Composer\Autoload\ComposerStaticInitc18984447c602db362ce30c90c3e6912::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequirec18984447c602db362ce30c90c3e6912($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequirec18984447c602db362ce30c90c3e6912($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit91078cb6ab41234844508601a40b8212
8
  {
9
  public static $files = array (
10
  'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
@@ -91,9 +91,9 @@ class ComposerStaticInit91078cb6ab41234844508601a40b8212
91
  public static function getInitializer(ClassLoader $loader)
92
  {
93
  return \Closure::bind(function () use ($loader) {
94
- $loader->prefixLengthsPsr4 = ComposerStaticInit91078cb6ab41234844508601a40b8212::$prefixLengthsPsr4;
95
- $loader->prefixDirsPsr4 = ComposerStaticInit91078cb6ab41234844508601a40b8212::$prefixDirsPsr4;
96
- $loader->classMap = ComposerStaticInit91078cb6ab41234844508601a40b8212::$classMap;
97
 
98
  }, null, ClassLoader::class);
99
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitc18984447c602db362ce30c90c3e6912
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 = ComposerStaticInitc18984447c602db362ce30c90c3e6912::$prefixLengthsPsr4;
95
+ $loader->prefixDirsPsr4 = ComposerStaticInitc18984447c602db362ce30c90c3e6912::$prefixDirsPsr4;
96
+ $loader->classMap = ComposerStaticInitc18984447c602db362ce30c90c3e6912::$classMap;
97
 
98
  }, null, ClassLoader::class);
99
  }