WordPress Backup and Migrate Plugin – Backup Guard - Version 1.5.7

Version Description

  • Fix error message when no cloud is selected
  • Fix localization issue
Download this release

Release Info

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

Code changes from version 1.5.6 to 1.5.7

BackupGuard.php CHANGED
@@ -65,9 +65,10 @@ function before_deactivate_backup_guard()
65
  wp_enqueue_style('before-deactivate-backup-guard-css', plugin_dir_url(__FILE__).'public/css/deactivationSurvey.css');
66
  wp_enqueue_script('before-deactivate-backup-guard-js', plugin_dir_url(__FILE__).'public/js/deactivationSurvey.js', array('jquery'));
67
 
68
- wp_localize_script('before-deactivate-backup-guard-js', 'BG_BACKUP_STRINGS', array(
69
  'nonce' => wp_create_nonce('backupGuardAjaxNonce'),
70
- 'areYouSure' => _backupGuardT('Are you sure?', true)
 
71
  ));
72
 
73
  require_once(plugin_dir_path(__FILE__).'public/include/uninstallSurveyPopup.php');
@@ -917,15 +918,8 @@ function backupGuardloadTextDomain()
917
  }
918
  }
919
 
920
- $pluginCapabilities = backupGuardGetCapabilities();
921
- if (backupGuardShouldShowDiscountNotice() && checkDueDateDiscount() && $pluginCapabilities == BACKUP_GUARD_CAPABILITIES_FREE) {
922
  add_action('admin_notices', 'backup_guard_discount_notice');
923
- add_action('admin_enqueue_scripts', 'sgbgChristmasCSS');
924
- }
925
-
926
- function sgbgChristmasCSS($hook)
927
- {
928
- wp_enqueue_style('backup-guard-less', plugin_dir_url(__FILE__).'public/css/bgstyle.less.css');
929
  }
930
 
931
  function backup_guard_discount_notice()
@@ -933,191 +927,28 @@ function backup_guard_discount_notice()
933
  $capabilities = backupGuardGetCapabilities();
934
  $upgradeUrl = BG_UPGRADE_URL;
935
  ?>
936
- <div style="visibility: hidden;height: 0;">
937
- <div id="sg-christmas-popup-content-wrapper">
938
- <div class="sgbg-christmas-close-popup"></div>
939
- <div class="sg-christmas-text-image1"></div>
940
- <p class="sg-christmas-p">
941
- <span class="sg-christmas-percent-span"><b>Save 50%</b></span>
942
- <span>for all our products during the Christmas</span>
943
- </p>
944
- <div class="sg-christmas-btn-wrapper">
945
- <a href="<?php echo BG_UPGRADE_URL; ?>" target="_blank">
946
- <button class="sg-christmas-button">Click Here</button>
947
- </a>
948
- </div>
949
- </div>
950
- </div>
951
- <div class="sg-wrapper-less">
952
- <div class="backup-guard-discount-notice updated notice is-dismissible sg-wrapper-less">
953
- <div class="col-lg-3 col-md-4 col-sm-4">
954
- <div class="sg-christmas-logo"></div>
955
- </div>
956
- <div class="col-lg-4 col-md-4 col-sm-4">
957
- <div class="sg-christmas-text-image"></div>
958
  </div>
959
- <div class="col-lg-4 col-md-4 col-sm-4">
960
- <div class="sg-christmas-txt">
961
- <div class="sg-christmas-percent"><p>Save 50% </p></div>
962
- <p>for all our products during the Christmas</p>
963
- <a href="<?php echo BG_UPGRADE_URL; ?>" target="_blank">
964
- <button class="sg-christmas-banner-button">Click Here</button>
965
- </a>
966
- </div>
967
  </div>
968
- <div class="col-lg-3 col-md-0"></div>
969
- <!-- <a href="--><?php //echo SG_BACKUP_SITE_PRICING_URL; ?><!--" target="_blank">-->
970
- <!-- <div class="sgbg-banner-content">-->
971
- <!-- </div>-->
972
- <!-- </a>-->
973
- <!-- <div class="sgbg-col sgbg-col1"></div>-->
974
- <!-- <div class="sgbg-col sgbg-col2"></div>-->
975
- <!-- <div class="sgbg-col sgbg-col3">-->
976
- <!-- <div class="sgbg-text-col-1">-->
977
- <!-- -50%-->
978
- <!-- </div>-->
979
- <!-- <div class="sgbg-text-col-2">-->
980
- <!-- <div class="sgbg-discount-text-1">Discount</div>-->
981
- <!-- <div class="sgbg-discount-text-2">All Backup Guard Solutions</div>-->
982
- <!-- </div>-->
983
- <!-- </div>-->
984
- <!-- <div class="sgbg-col sgbg-col4">-->
985
- <!-- <a href="https://backup-guard.com/products/backup-wordpress" target="_blank"><button class="sgbg-button">Click Here</button></a>-->
986
- <!-- </div>-->
987
  </div>
988
  </div>
989
  <style>
990
- .sg-christmas-txt {
991
- color: #ffffff;
992
- font-size: 25px;
993
- margin-top: 10px;
994
- text-align: left;
995
- }
996
- .sg-christmas-button {
997
- background-image: url("<?php echo SG_IMAGE_URL ?>christmas-button.png");
998
- width: 242px;
999
- height: 79px;
1000
- border: none;
1001
- box-shadow: none;
1002
- background-color: rgba(0, 0, 0, 0);
1003
- margin: 0 auto !important;
1004
- font-size: 25px;
1005
- cursor: pointer;
1006
- color: #ffffff !important;
1007
- }
1008
- .sg-christmas-banner-button {
1009
- background-image: url("<?php echo SG_IMAGE_URL ?>christmas-banner-btn.png");
1010
- width: 149px;
1011
- height: 80px;
1012
- border: none;
1013
- box-shadow: none;
1014
- background-color: rgba(0, 0, 0, 0);
1015
- margin: 0 auto !important;
1016
- font-size: 20px !important;
1017
- cursor: pointer;
1018
- color: #ffffff !important;
1019
- background-repeat: no-repeat;
1020
- background-position: center center;
1021
- }
1022
- .sg-christmas-button:focus {
1023
- border: 2px solid #0095FE !important;
1024
- outline: none;
1025
- }
1026
- .sg-christmas-button:hover {
1027
- font-size: 20px;
1028
- }
1029
- .sg-christmas-banner-button:hover {
1030
- font-size: 15px !important;
1031
- }
1032
- .sg-christmas-txt a:focus {
1033
- box-shadow: none;
1034
- outline: none;
1035
- border: none;
1036
- }
1037
- .sg-christmas-banner-button:focus {
1038
- outline: none !important;
1039
- }
1040
- .sg-christmas-logo {
1041
- height: 125px;
1042
- width: 318px;
1043
- background-image: url("<?php echo SG_IMAGE_URL ?>christmas-logo.png");
1044
- background-repeat: no-repeat;
1045
- margin-top: 11px;
1046
- position: absolute;
1047
- top: -3px;
1048
- left: 13px;
1049
- }
1050
- .sg-christmas-text-image {
1051
- height: 145px;
1052
- background-image: url("<?php echo SG_IMAGE_URL ?>christmas-text.png");
1053
- background-size: contain;
1054
- background-repeat: no-repeat;
1055
- background-position: center;
1056
- }
1057
- .sg-christmas-percent {
1058
- margin: 15px 0 5px 0;
1059
- }
1060
- .sg-christmas-percent p {
1061
- font-size: 40px;
1062
- }
1063
- .sg-christmas-txt p {
1064
- margin: 0 !important;
1065
- padding: 0 !important;
1066
- line-height: 1 !important;
1067
- }
1068
- #sg-christmas-popup-content-wrapper {
1069
- position: relative;
1070
- width: 640px;
1071
- height: 538px;
1072
- max-width: 100%;
1073
- max-height: 100%;
1074
- background-image: url("<?php echo SG_IMAGE_URL ?>plugin-christmas-popup.png");
1075
- background-repeat: no-repeat;
1076
- background-size: 100% 100%;
1077
- background-position: top center;
1078
- box-sizing: border-box;
1079
- padding-top: 183px;
1080
- }
1081
- .sg-christmas-p {
1082
- text-align: center;
1083
- color: #FFFFff;
1084
- font-size: 25px;
1085
- margin-top: 0;
1086
- margin-bottom: 40px;
1087
- }
1088
- #sg-christmas-popup-content-wrapper .sg-christmas-p {
1089
- margin-top: 108px;
1090
- }
1091
- .sg-christmas-percent-span {
1092
- display: block;
1093
- }
1094
- .sg-christmas-btn-wrapper {
1095
- text-align: center;
1096
- }
1097
- .sgbg-banner-content {
1098
- height: 160px;
1099
- background-image: url("<?php echo SG_IMAGE_URL ?>halloween.png");
1100
- background-size: cover;
1101
- background-repeat: no-repeat;
1102
- }
1103
- .sgbg-christmas-close-popup {
1104
- position: absolute;
1105
- top: 43px;
1106
- right: 16px;
1107
- background-size: contain;
1108
- width: 20px;
1109
- height: 21px;
1110
- background-repeat: no-repeat;
1111
- background-image: url("<?php echo SG_IMAGE_URL ?>christmas-close.png");
1112
- cursor: pointer;
1113
- }
1114
  .backup-guard-discount-notice.updated.notice.is-dismissible {
 
1115
  border-left-color: #FFFFFF !important;
1116
  background-color: #000000;
1117
  height: 160px;
1118
- padding: 5px 0;
1119
- background-image: url("<?php echo SG_IMAGE_URL ?>christmas-bg.png");
1120
- background-size: 100% 100%;
1121
  }
1122
  .backup-guard-discount-notice button:before {
1123
  color: #ffffff !important;
@@ -1194,17 +1025,12 @@ function backup_guard_discount_notice()
1194
  border: 1px solid #FFFFFF;
1195
  color: #FFFFFF;
1196
  }
1197
- .backup-guard-discount-notice .notice-dismiss {
1198
- background-image: url("<?php echo SG_IMAGE_URL ?>christmas-close.png");
1199
- position: absolute;
1200
- top: 8px;
1201
- right: 8px;
1202
- background-size: contain;
1203
- background-repeat: no-repeat;
1204
- }
1205
  .backup-guard-discount-notice .notice-dismiss::before {
1206
- display: none;
 
 
1207
  }
 
1208
  @media (max-width: 1810px) {
1209
  .sgbg-text-col-1 {
1210
  font-size: 80px;
65
  wp_enqueue_style('before-deactivate-backup-guard-css', plugin_dir_url(__FILE__).'public/css/deactivationSurvey.css');
66
  wp_enqueue_script('before-deactivate-backup-guard-js', plugin_dir_url(__FILE__).'public/js/deactivationSurvey.js', array('jquery'));
67
 
68
+ wp_localize_script('before-deactivate-backup-guard-js', 'BG_BACKUP_STRINGS_DEACTIVATE', array(
69
  'nonce' => wp_create_nonce('backupGuardAjaxNonce'),
70
+ 'areYouSure' => _backupGuardT('Are you sure?', true),
71
+ 'invalidCloud' => _backupGuardT('Please select at least 1 cloud', true)
72
  ));
73
 
74
  require_once(plugin_dir_path(__FILE__).'public/include/uninstallSurveyPopup.php');
918
  }
919
  }
920
 
921
+ if (backupGuardShouldShowDiscountNotice() && checkDueDateDiscount()) {
 
922
  add_action('admin_notices', 'backup_guard_discount_notice');
 
 
 
 
 
 
923
  }
924
 
925
  function backup_guard_discount_notice()
927
  $capabilities = backupGuardGetCapabilities();
928
  $upgradeUrl = BG_UPGRADE_URL;
929
  ?>
930
+ <div class="backup-guard-discount-notice updated notice is-dismissible">
931
+ <div class="sgbg-col sgbg-col1"></div>
932
+ <div class="sgbg-col sgbg-col2"></div>
933
+ <div class="sgbg-col sgbg-col3">
934
+ <div class="sgbg-text-col-1">
935
+ -50%
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
936
  </div>
937
+ <div class="sgbg-text-col-2">
938
+ <div class="sgbg-discount-text-1">Discount</div>
939
+ <div class="sgbg-discount-text-2">All Backup Guard Solutions</div>
 
 
 
 
 
940
  </div>
941
+ </div>
942
+ <div class="sgbg-col sgbg-col4">
943
+ <a href="https://backup-guard.com/products/backup-wordpress" target="_blank"><button class="sgbg-button">Click Here</button></a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
944
  </div>
945
  </div>
946
  <style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
947
  .backup-guard-discount-notice.updated.notice.is-dismissible {
948
+ padding: 0;
949
  border-left-color: #FFFFFF !important;
950
  background-color: #000000;
951
  height: 160px;
 
 
 
952
  }
953
  .backup-guard-discount-notice button:before {
954
  color: #ffffff !important;
1025
  border: 1px solid #FFFFFF;
1026
  color: #FFFFFF;
1027
  }
 
 
 
 
 
 
 
 
1028
  .backup-guard-discount-notice .notice-dismiss::before {
1029
+ content: "x";
1030
+ font-weight: 300;
1031
+ font-family: Arial, sans-serif;
1032
  }
1033
+
1034
  @media (max-width: 1810px) {
1035
  .sgbg-text-col-1 {
1036
  font-size: 80px;
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.6
9
- Stable tag: 1.5.6
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -167,6 +167,10 @@ 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
  = 1.5.6 =
171
  * Fixed bug related to connection timeout and blocking requests
172
 
6
  Tags: backup, wordpress backup plugin, backup plugin, database backup, migrate, back up
7
  Requires at least: 3.8
8
  Tested up to: 5.6
9
+ Stable tag: 1.5.7
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.5.7 =
171
+ * Fix error message when no cloud is selected
172
+ * Fix localization issue
173
+
174
  = 1.5.6 =
175
  * Fixed bug related to connection timeout and blocking requests
176
 
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.5.6
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.5.5');
20
  }
21
 
22
  if (!defined('SG_BACKUP_GUARD_MAIN_FILE')) {
@@ -33,4 +33,4 @@ if (!defined('WPINC')) {
33
  }
34
 
35
  require_once(plugin_dir_path(__FILE__).'public/boot.php');
36
- require_once(plugin_dir_path(__FILE__).'BackupGuard.php');
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.5.7
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.5.7');
20
  }
21
 
22
  if (!defined('SG_BACKUP_GUARD_MAIN_FILE')) {
33
  }
34
 
35
  require_once(plugin_dir_path(__FILE__).'public/boot.php');
36
+ require_once(plugin_dir_path(__FILE__).'BackupGuard.php');
com/core/backup/SGBackupDatabase.php CHANGED
File without changes
com/core/backup/SGBackupFiles.php CHANGED
File without changes
com/lib/SGArchive.php CHANGED
File without changes
com/lib/SGMysqldump.php CHANGED
File without changes
public/js/sgbackup.js CHANGED
@@ -32,7 +32,7 @@ jQuery(document).ready( function() {
32
  });
33
 
34
  jQuery('#sg-delete-multi-backups').on('click', function(){
35
- if (!confirm(BG_BACKUP_STRINGS.areYouSure)) {
36
  return false;
37
  }
38
  var backups = jQuery('tbody input[type="checkbox"]:checked');
32
  });
33
 
34
  jQuery('#sg-delete-multi-backups').on('click', function(){
35
+ if (!confirm(BG_BACKUP_STRINGS_DEACTIVATE.areYouSure)) {
36
  return false;
37
  }
38
  var backups = jQuery('tbody input[type="checkbox"]:checked');