Version Description
- Admin side bug fixed
Download this release
Release Info
Developer | BackupGuard |
Plugin | WordPress Backup and Migrate Plugin – Backup Guard |
Version | 1.3.9 |
Comparing to | |
See all releases |
Code changes from version 1.3.8 to 1.3.9
- BackupGuard.php +24 -18
- README.txt +4 -1
- backup.php +2 -2
- com/lib/SGArchiveToZip.php +0 -49
- com/lib/test.txt +0 -26
BackupGuard.php
CHANGED
@@ -739,27 +739,33 @@ function backup_guard_schedule_action($id)
|
|
739 |
require_once(SG_PUBLIC_PATH.'cron/sg_backup.php');
|
740 |
}
|
741 |
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
require_once(dirname(__FILE__).'/plugin-update-checker/Puc/v4/Utils.php');
|
747 |
-
require_once(SG_LIB_PATH.'SGAuthClient.php');
|
748 |
-
|
749 |
-
$licenseKey = SGConfig::get('SG_LICENSE_KEY');
|
750 |
-
|
751 |
-
$updateChecker = Puc_v4_Factory::buildUpdateChecker(
|
752 |
-
BackupGuard\Config::URL.'/products/details/'.$licenseKey,
|
753 |
-
SG_BACKUP_GUARD_MAIN_FILE,
|
754 |
-
SG_PRODUCT_IDENTIFIER
|
755 |
-
);
|
756 |
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
761 |
}
|
762 |
|
|
|
|
|
763 |
if (SGBoot::isFeatureAvailable('ALERT_BEFORE_UPDATE')) {
|
764 |
add_filter('upgrader_pre_download', 'backupGuardOnBeforeUpdateDownload', 10, 3);
|
765 |
add_action('core_upgrade_preamble', 'backupGuardOnUpgradeScreenActivate');
|
739 |
require_once(SG_PUBLIC_PATH.'cron/sg_backup.php');
|
740 |
}
|
741 |
|
742 |
+
function sgBackupAdminInit() {
|
743 |
+
//load pro plugin updater
|
744 |
+
$pluginCapabilities = backupGuardGetCapabilities();
|
745 |
+
$isLoggedIn = is_user_logged_in();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
746 |
|
747 |
+
if ($pluginCapabilities != BACKUP_GUARD_CAPABILITIES_FREE && $isLoggedIn) {
|
748 |
+
require_once(dirname(__FILE__).'/plugin-update-checker/plugin-update-checker.php');
|
749 |
+
require_once(dirname(__FILE__).'/plugin-update-checker/Puc/v4/Utils.php');
|
750 |
+
require_once(SG_LIB_PATH.'SGAuthClient.php');
|
751 |
+
|
752 |
+
$licenseKey = SGConfig::get('SG_LICENSE_KEY');
|
753 |
+
|
754 |
+
$updateChecker = Puc_v4_Factory::buildUpdateChecker(
|
755 |
+
BackupGuard\Config::URL.'/products/details/'.$licenseKey,
|
756 |
+
SG_BACKUP_GUARD_MAIN_FILE,
|
757 |
+
SG_PRODUCT_IDENTIFIER
|
758 |
+
);
|
759 |
+
|
760 |
+
$updateChecker->addHttpRequestArgFilter(array(
|
761 |
+
SGAuthClient::getInstance(),
|
762 |
+
'filterUpdateChecks'
|
763 |
+
));
|
764 |
+
}
|
765 |
}
|
766 |
|
767 |
+
add_action('admin_init', 'sgBackupAdminInit');
|
768 |
+
|
769 |
if (SGBoot::isFeatureAvailable('ALERT_BEFORE_UPDATE')) {
|
770 |
add_filter('upgrader_pre_download', 'backupGuardOnBeforeUpdateDownload', 10, 3);
|
771 |
add_action('core_upgrade_preamble', 'backupGuardOnUpgradeScreenActivate');
|
README.txt
CHANGED
@@ -6,7 +6,7 @@ Donate link: https://backup-guard.com/products/backup-wordpress
|
|
6 |
Tags: backup, wordpress backup plugin, backup plugin, database backup, migrate, back up
|
7 |
Requires at least: 3.8
|
8 |
Tested up to: 5.4.2
|
9 |
-
Stable tag: 1.3.
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -157,6 +157,9 @@ When you are facing an issue of any kind with any of our products, the first thi
|
|
157 |
6. Site backup customization
|
158 |
|
159 |
== Changelog ==
|
|
|
|
|
|
|
160 |
= 1.3.8 =
|
161 |
* Bug fixed inside log files
|
162 |
|
6 |
Tags: backup, wordpress backup plugin, backup plugin, database backup, migrate, back up
|
7 |
Requires at least: 3.8
|
8 |
Tested up to: 5.4.2
|
9 |
+
Stable tag: 1.3.9
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
157 |
6. Site backup customization
|
158 |
|
159 |
== Changelog ==
|
160 |
+
= 1.3.9 =
|
161 |
+
* Admin side bug fixed
|
162 |
+
|
163 |
= 1.3.8 =
|
164 |
* Bug fixed inside log files
|
165 |
|
backup.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Backup
|
5 |
* Plugin URI: https://backup-guard.com/products/backup-wordpress
|
6 |
* Description: Backup Guard is the most complete site backup and restore plugin. We offer the easiest way to backup, restore or migrate your site. You can backup your files, database or both.
|
7 |
-
* Version: 1.3.
|
8 |
* Author: BackupGuard
|
9 |
* Author URI: https://backup-guard.com/products/backup-wordpress
|
10 |
* License: GPL-2.0+
|
@@ -16,7 +16,7 @@ if (function_exists('activate_backup_guard')) {
|
|
16 |
}
|
17 |
|
18 |
if (!defined('SG_BACKUP_GUARD_VERSION')) {
|
19 |
-
define('SG_BACKUP_GUARD_VERSION', '1.3.
|
20 |
}
|
21 |
|
22 |
if (!defined('SG_BACKUP_GUARD_MAIN_FILE')) {
|
4 |
* Plugin Name: Backup
|
5 |
* Plugin URI: https://backup-guard.com/products/backup-wordpress
|
6 |
* Description: Backup Guard is the most complete site backup and restore plugin. We offer the easiest way to backup, restore or migrate your site. You can backup your files, database or both.
|
7 |
+
* Version: 1.3.9
|
8 |
* Author: BackupGuard
|
9 |
* Author URI: https://backup-guard.com/products/backup-wordpress
|
10 |
* License: GPL-2.0+
|
16 |
}
|
17 |
|
18 |
if (!defined('SG_BACKUP_GUARD_VERSION')) {
|
19 |
+
define('SG_BACKUP_GUARD_VERSION', '1.3.9');
|
20 |
}
|
21 |
|
22 |
if (!defined('SG_BACKUP_GUARD_MAIN_FILE')) {
|
com/lib/SGArchiveToZip.php
DELETED
@@ -1,49 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class SGArchiveToZip
|
4 |
-
{
|
5 |
-
public function __construct()
|
6 |
-
{
|
7 |
-
$this->backupFiles = new SGBackupFiles();
|
8 |
-
}
|
9 |
-
|
10 |
-
private $filePath;
|
11 |
-
private $fileName;
|
12 |
-
|
13 |
-
public function setFilePath($filePath)
|
14 |
-
{
|
15 |
-
$this->filePath = $filePath;
|
16 |
-
}
|
17 |
-
|
18 |
-
public function getFilePath()
|
19 |
-
{
|
20 |
-
return $this->filePath;
|
21 |
-
}
|
22 |
-
|
23 |
-
public function setFileName($fileName)
|
24 |
-
{
|
25 |
-
$this->fileName = $fileName;
|
26 |
-
}
|
27 |
-
|
28 |
-
public function getFileName()
|
29 |
-
{
|
30 |
-
return $this->fileName;
|
31 |
-
}
|
32 |
-
|
33 |
-
public function convert()
|
34 |
-
{
|
35 |
-
$this->extract();
|
36 |
-
}
|
37 |
-
|
38 |
-
private function extract()
|
39 |
-
{
|
40 |
-
$backupName = $this->getFileName();
|
41 |
-
$backupName = backupGuardRemoveSlashes($backupName);
|
42 |
-
$backupPath = SG_BACKUP_DIRECTORY.$backupName;
|
43 |
-
$filePath = $backupPath.'/'.$backupName.'.sgbp';
|
44 |
-
|
45 |
-
$files = new SGBackup();
|
46 |
-
$files->extractForZip($filePath, $backupPath, $backupName);
|
47 |
-
//$files->extractBackupByPath($backupPath.'/'.$backupName.'.sgbp', $backupName);
|
48 |
-
}
|
49 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
com/lib/test.txt
DELETED
@@ -1,26 +0,0 @@
|
|
1 |
-
Array
|
2 |
-
(
|
3 |
-
[siteUrl] => http://localhost:8888/wordpress
|
4 |
-
[home] => http://localhost:8888/wordpress
|
5 |
-
[dbPrefix] => wp_
|
6 |
-
[tables] => ["wp_options","wp_commentmeta","wp_comments","wp_custom","wp_links","wp_postmeta","wp_posts","wp_term_relationships","wp_term_taxonomy","wp_termmeta","wp_terms","wp_usermeta","wp_users","wp_wfblockediplog"]
|
7 |
-
[method] => 2
|
8 |
-
[multisitePath] =>
|
9 |
-
[multisiteDomain] =>
|
10 |
-
[selectivRestoreable] => 1
|
11 |
-
[phpVersion] => 7.0.31
|
12 |
-
[version] => 5
|
13 |
-
)
|
14 |
-
Array
|
15 |
-
(
|
16 |
-
[siteUrl] => http://localhost:8888/wordpress
|
17 |
-
[home] => http://localhost:8888/wordpress
|
18 |
-
[dbPrefix] => wp_
|
19 |
-
[tables] => ["wp_options","wp_commentmeta","wp_comments","wp_custom","wp_links","wp_postmeta","wp_posts","wp_term_relationships","wp_term_taxonomy","wp_termmeta","wp_terms","wp_usermeta","wp_users","wp_wfblockediplog"]
|
20 |
-
[method] => 2
|
21 |
-
[multisitePath] =>
|
22 |
-
[multisiteDomain] =>
|
23 |
-
[selectivRestoreable] => 1
|
24 |
-
[phpVersion] => 7.0.31
|
25 |
-
[version] => 5
|
26 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|