WordPress Backup and Migrate Plugin – Backup Guard - Version 1.4.9

Version Description

  • Fixed messages
Download this release

Release Info

Developer BackupGuard
Plugin Icon 128x128 WordPress Backup and Migrate Plugin – Backup Guard
Version 1.4.9
Comparing to
See all releases

Code changes from version 1.4.8.1 to 1.4.9

BackupGuard.php CHANGED
@@ -915,60 +915,23 @@ function backup_guard_discount_notice()
915
  $capabilities = backupGuardGetCapabilities();
916
  $upgradeUrl = BG_UPGRADE_URL;
917
  ?>
918
- <div style="visibility: hidden;height: 0;">
919
- <div id="sg-halloween-popup-content-wrapper">
920
- <div class="sgbg-halloween-close-popup"></div>
921
- </div>
922
- </div>
923
  <div class="backup-guard-discount-notice updated notice is-dismissible">
924
- <a href="<?php echo SG_BACKUP_SITE_PRICING_URL; ?>" target="_blank">
925
- <div class="sgbg-banner-content">
926
- </div>
927
- </a>
928
- <!-- <div class="sgbg-col sgbg-col1"></div>-->
929
- <!-- <div class="sgbg-col sgbg-col2"></div>-->
930
- <!-- <div class="sgbg-col sgbg-col3">-->
931
- <!-- <div class="sgbg-text-col-1">-->
932
- <!-- -50%-->
933
- <!-- </div>-->
934
- <!-- <div class="sgbg-text-col-2">-->
935
- <!-- <div class="sgbg-discount-text-1">Discount</div>-->
936
- <!-- <div class="sgbg-discount-text-2">All Backup Guard Solutions</div>-->
937
- <!-- </div>-->
938
- <!-- </div>-->
939
- <!-- <div class="sgbg-col sgbg-col4">-->
940
- <!-- <a href="https://backup-guard.com/products/backup-wordpress" target="_blank"><button class="sgbg-button">Click Here</button></a>-->
941
- <!-- </div>-->
942
  </div>
943
  <style>
944
- #sg-halloween-popup-content-wrapper {
945
- position: relative;
946
- width: 834px;
947
- height: 685px;
948
- max-width: 100%;
949
- max-height: 100%;
950
- background-image: url("<?php echo SG_IMAGE_URL ?>halloweenPopup.png");
951
- background-repeat: no-repeat;
952
- background-size: 100% 100%;
953
- background-position: top center;
954
- }
955
- .sgbg-banner-content {
956
- height: 160px;
957
- background-image: url("<?php echo SG_IMAGE_URL ?>halloween.png");
958
- background-size: cover;
959
- background-repeat: no-repeat;
960
- }
961
- .sgbg-halloween-close-popup {
962
- position: absolute;
963
- top: 102px;
964
- right: 122px;
965
- background-size: contain;
966
- width: 20px;
967
- height: 21px;
968
- background-repeat: no-repeat;
969
- background-image: url("<?php echo SG_IMAGE_URL ?>halloweenPopupClose.png");
970
- cursor: pointer;
971
- }
972
  .backup-guard-discount-notice.updated.notice.is-dismissible {
973
  padding: 0;
974
  border-left-color: #FFFFFF !important;
915
  $capabilities = backupGuardGetCapabilities();
916
  $upgradeUrl = BG_UPGRADE_URL;
917
  ?>
 
 
 
 
 
918
  <div class="backup-guard-discount-notice updated notice is-dismissible">
919
+ <div class="sgbg-col sgbg-col1"></div>
920
+ <div class="sgbg-col sgbg-col2"></div>
921
+ <div class="sgbg-col sgbg-col3">
922
+ <div class="sgbg-text-col-1">
923
+ -50%
924
+ </div>
925
+ <div class="sgbg-text-col-2">
926
+ <div class="sgbg-discount-text-1">Discount</div>
927
+ <div class="sgbg-discount-text-2">All Backup Guard Solutions</div>
928
+ </div>
929
+ </div>
930
+ <div class="sgbg-col sgbg-col4">
931
+ <a href="https://backup-guard.com/products/backup-wordpress" target="_blank"><button class="sgbg-button">Click Here</button></a>
932
+ </div>
 
 
 
 
933
  </div>
934
  <style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
935
  .backup-guard-discount-notice.updated.notice.is-dismissible {
936
  padding: 0;
937
  border-left-color: #FFFFFF !important;
README.txt CHANGED
@@ -5,8 +5,8 @@ Author: Backup Guard
5
  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.5.1
9
- Stable tag: 1.4.8.1
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -167,9 +167,8 @@ When you are facing an issue of any kind with any of our products, the first thi
167
  6. Site backup customization
168
 
169
  == Changelog ==
170
-
171
- = 1.4.8.1 =
172
- * Code improvement
173
 
174
  = 1.4.8 =
175
  * Bug fixed related to Dropbox connection issue
5
  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.5.3
9
+ Stable tag: 1.4.9
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
167
  6. Site backup customization
168
 
169
  == Changelog ==
170
+ = 1.4.9 =
171
+ * Fixed messages
 
172
 
173
  = 1.4.8 =
174
  * Bug fixed related to Dropbox connection issue
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.4.8.1
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.4.8.1');
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.4.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.4.9');
20
  }
21
 
22
  if (!defined('SG_BACKUP_GUARD_MAIN_FILE')) {
public/ajax/dismissDiscountNotice.php CHANGED
@@ -2,4 +2,4 @@
2
 
3
  require_once(dirname(__FILE__).'/../boot.php');
4
 
5
- SGConfig::set('SG_HIDE_HALLOWEEN_DISCOUNT_NOTICE', 1);
2
 
3
  require_once(dirname(__FILE__).'/../boot.php');
4
 
5
+ SGConfig::set('SG_HIDE_DISCOUNT_NOTICE', 1);
public/css/bgstyle.less.css CHANGED
@@ -8128,7 +8128,7 @@ input.sg-backup-input[readonly] {
8128
  }
8129
 
8130
  .sg-error-notice-wrapper {
8131
- text-align: center;
8132
  }
8133
 
8134
  .sg-notice-contact-wrapper {
8128
  }
8129
 
8130
  .sg-error-notice-wrapper {
8131
+ text-align: left;
8132
  }
8133
 
8134
  .sg-notice-contact-wrapper {
public/img/halloween.png DELETED
Binary file
public/img/halloweenPopup.png DELETED
Binary file
public/img/halloweenPopupClose.png DELETED
Binary file
public/include/functions.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  function backupGuardShouldShowDiscountNotice()
4
  {
5
- if (SGConfig::get("SG_HIDE_HALLOWEEN_DISCOUNT_NOTICE")) {
6
  return false;
7
  }
8
 
@@ -11,8 +11,8 @@ function backupGuardShouldShowDiscountNotice()
11
 
12
  function checkDueDateDiscount()
13
  {
14
- $startDate = '2020-10-27';
15
- $endDate = '2020-11-02';
16
 
17
  $timezone = 'Asia/Yerevan';
18
  $timeDate = new DateTime('now', new DateTimeZone($timezone));
@@ -224,7 +224,7 @@ function backupGuardShouldUpdate()
224
 
225
  if ($currentVersion !== $oldVersion) {
226
  SGConfig::set('SG_BACKUP_GUARD_VERSION', $currentVersion, true);
227
- SGConfig::set('SG_HIDE_HALLOWEEN_DISCOUNT_NOTICE', '0', true);
228
  SGBoot::didUpdatePluginVersion();
229
  return SG_FORCE_DB_TABLES_RESET;
230
  }
2
 
3
  function backupGuardShouldShowDiscountNotice()
4
  {
5
+ if (SGConfig::get("SG_HIDE_DISCOUNT_NOTICE")) {
6
  return false;
7
  }
8
 
11
 
12
  function checkDueDateDiscount()
13
  {
14
+ $startDate = '2019-11-27';
15
+ $endDate = '2019-12-02';
16
 
17
  $timezone = 'Asia/Yerevan';
18
  $timeDate = new DateTime('now', new DateTimeZone($timezone));
224
 
225
  if ($currentVersion !== $oldVersion) {
226
  SGConfig::set('SG_BACKUP_GUARD_VERSION', $currentVersion, true);
227
+ SGConfig::set('SG_HIDE_DISCOUNT_NOTICE', '0', true);
228
  SGBoot::didUpdatePluginVersion();
229
  return SG_FORCE_DB_TABLES_RESET;
230
  }
public/js/popup.js CHANGED
@@ -1492,66 +1492,27 @@ SGPopup.openSGPopup = function() {
1492
  }
1493
  };
1494
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1495
  jQuery(document).ready(function() {
1496
  if (!jQuery('#'+hiddenDivId).length) {
1497
  return false;
1498
  }
1499
- var hiddenDivId = 'sg-backup-review-wrapper';
1500
- var popupConfigObj = new PopupConfig();
1501
- popupConfigObj.magicCall('setContentPadding', 0);
1502
- popupConfigObj.magicCall('setContentBorderRadius', 4);
1503
- popupConfigObj.magicCall('setContentBorderRadiusType', 'px');
1504
- popupConfigObj.magicCall('setContentBorderWidth', 5);
1505
- popupConfigObj.magicCall('setContentBorderColor', '#506274');
1506
- popupConfigObj.magicCall('setShadowSpread', 1);
1507
- popupConfigObj.magicCall('setContentShadowBlur', 4);
1508
- popupConfigObj.magicCall('setContentShadowColor', '#cccccc');
1509
- popupConfigObj.magicCall('setMinWidth', 400);
1510
- popupConfigObj.magicCall('setSrcElement', hiddenDivId);
1511
- popupConfigObj.magicCall('setOverlayColor', 'black');
1512
- popupConfigObj.magicCall('setOverlayOpacity', 40);
1513
- var config = popupConfigObj.combineConfigObj();
1514
-
1515
  var popup = new SGPopup(config);
1516
  window.backupGuardReviewPopup = popup;
1517
  popup.open();
1518
- });
1519
-
1520
- jQuery(document).ready(function () {
1521
- var hiddenDivId = 'sg-halloween-popup-content-wrapper';
1522
- if (!jQuery('#'+hiddenDivId).length) {
1523
- return false;
1524
- }
1525
-
1526
- var popupConfigObj = new PopupConfig();
1527
- popupConfigObj.magicCall('setContentPadding', 0);
1528
- popupConfigObj.magicCall('setContentBorderRadius', 4);
1529
- popupConfigObj.magicCall('setContentBorderRadiusType', 'px');
1530
- popupConfigObj.magicCall('setContentBorderWidth', 0);
1531
- popupConfigObj.magicCall('setOverlayColor', 'white');
1532
- popupConfigObj.magicCall('setContentBorderColor', '#506274');
1533
- popupConfigObj.magicCall('setShadowSpread', 1);
1534
- popupConfigObj.magicCall('setContentShadowBlur', 4);
1535
- popupConfigObj.magicCall('setContentBackgroundColor', 'rgba(1,1,1,0)');
1536
- popupConfigObj.magicCall('setContentShadowColor', '');
1537
- popupConfigObj.magicCall('setMinWidth', 400);
1538
- popupConfigObj.magicCall('setSrcElement', hiddenDivId);
1539
- popupConfigObj.magicCall('setOverlayColor', 'black');
1540
- popupConfigObj.magicCall('setOverlayOpacity', 40);
1541
- var config = popupConfigObj.combineConfigObj();
1542
-
1543
- var popup = new SGPopup(config);
1544
- window.backupGuardHalloweenPopup = popup;
1545
- popup.open();
1546
-
1547
- jQuery('.sgbg-halloween-close-popup').bind('click', function () {
1548
- window.backupGuardHalloweenPopup.close();
1549
- jQuery('.backup-guard-discount-notice').remove();
1550
- var sgNoticeClosedHandler = new sgRequestHandler('dismiss_discount_notice', {token: BG_BACKUP_STRINGS.nonce});
1551
- sgNoticeClosedHandler.run();
1552
- });
1553
-
1554
- jQuery('#sg-halloween-popup-content-wrapper').bind('click', function () {
1555
- window.open('https://backup-guard.com/products/backup-wordpress#pricing')
1556
- });
1557
  });
1492
  }
1493
  };
1494
 
1495
+ var hiddenDivId = 'sg-backup-review-wrapper';
1496
+ var popupConfigObj = new PopupConfig();
1497
+ popupConfigObj.magicCall('setContentPadding', 0);
1498
+ popupConfigObj.magicCall('setContentBorderRadius', 4);
1499
+ popupConfigObj.magicCall('setContentBorderRadiusType', 'px');
1500
+ popupConfigObj.magicCall('setContentBorderWidth', 5);
1501
+ popupConfigObj.magicCall('setContentBorderColor', '#506274');
1502
+ popupConfigObj.magicCall('setShadowSpread', 1);
1503
+ popupConfigObj.magicCall('setContentShadowBlur', 4);
1504
+ popupConfigObj.magicCall('setContentShadowColor', '#cccccc');
1505
+ popupConfigObj.magicCall('setMinWidth', 400);
1506
+ popupConfigObj.magicCall('setSrcElement', hiddenDivId);
1507
+ popupConfigObj.magicCall('setOverlayColor', 'black');
1508
+ popupConfigObj.magicCall('setOverlayOpacity', 40);
1509
+ var config = popupConfigObj.combineConfigObj();
1510
+
1511
  jQuery(document).ready(function() {
1512
  if (!jQuery('#'+hiddenDivId).length) {
1513
  return false;
1514
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1515
  var popup = new SGPopup(config);
1516
  window.backupGuardReviewPopup = popup;
1517
  popup.open();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1518
  });
public/templates/notices/timeout_free_error.php CHANGED
@@ -1,13 +1,13 @@
1
  <div class="sg-error-notice-wrapper">
2
  <h2 class="sg-red-color sg-notice-error-h2">
3
- PHP EXECUTION TIMEOUT ERROR
4
  </h2>
5
- <p class="sg-red-color sg-notice-error-p">
6
  Oops... Seems there was an issue during the backup process.
7
  <br>
8
- Let our support representatives know about it by pressing here:
9
  </p>
10
  <div class="sg-wrapper-less sg-notice-contact-wrapper">
11
- <a href="<?php echo BACKUP_GUARD_WORDPRESS_SUPPORT_URL; ?>" class="btn btn-success" target="_blank">Contact us</a>
12
  </div>
13
  </div>
1
  <div class="sg-error-notice-wrapper">
2
  <h2 class="sg-red-color sg-notice-error-h2">
3
+ SOMETHING WENT WRONG
4
  </h2>
5
+ <p class="sg-black-color sg-notice-error-p">
6
  Oops... Seems there was an issue during the backup process.
7
  <br>
8
+ Please try again. If the issue persists, please contact our support team.
9
  </p>
10
  <div class="sg-wrapper-less sg-notice-contact-wrapper">
11
+ <a href="<?php echo BACKUP_GUARD_WORDPRESS_SUPPORT_URL; ?>" class="" target="_blank">Contact us</a>
12
  </div>
13
  </div>