WordPress Backup and Migrate Plugin – Backup Guard - Version 1.4.7

Version Description

  • Bug fixed related to the jQuery depreciation functionality
  • Improvement of BackupGuard sidebar menu
Download this release

Release Info

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

Code changes from version 1.4.6 to 1.4.7

Files changed (4) hide show
  1. README.txt +6 -2
  2. backup.php +2 -2
  3. public/include/sidebar.php +8 -5
  4. public/js/main.js +17 -13
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
9
- Stable tag: 1.4.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.4.6 =
171
  * "Send usage data" setting addition
172
  * Support section improvement
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.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.4.7 =
171
+ * Bug fixed related to the jQuery depreciation functionality
172
+ * Improvement of BackupGuard sidebar menu
173
+
174
  = 1.4.6 =
175
  * "Send usage data" setting addition
176
  * Support section improvement
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.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.4.6');
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.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.4.7');
20
  }
21
 
22
  if (!defined('SG_BACKUP_GUARD_MAIN_FILE')) {
public/include/sidebar.php CHANGED
@@ -25,10 +25,13 @@
25
  $upgradeText = $buttonText.$upgradeTo.' by paying only difference between plans.';
26
  $buttonText = $buttonText.$upgradeTo;
27
  }
28
- $supportUrl = network_admin_url('admin.php?page=backup_guard_support');
29
- if ($pluginCapabilities == BACKUP_GUARD_CAPABILITIES_FREE) {
30
- $supportUrl = BACKUP_GUARD_WORDPRESS_SUPPORT_URL;
31
- }
 
 
 
32
  ?>
33
  <div id="sg-sidebar-wrapper" class="metro">
34
  <a class="sg-site-url" href="<?php echo network_admin_url('admin.php?page=backup_guard_backups'); ?>">
@@ -77,7 +80,7 @@
77
  <span class="sg-action-menu-arrow"></span>
78
  </li>
79
  <li class="<?php echo strpos($page,'support')?'active':''?>">
80
- <a href="<?php echo $supportUrl; ?>" data-page-key="support">
81
  <span class="glyphicon glyphicon-envelope" aria-hidden="true"></span><?php _backupGuardT('Support')?>
82
  </a>
83
  <span class="sg-action-menu-arrow"></span>
25
  $upgradeText = $buttonText.$upgradeTo.' by paying only difference between plans.';
26
  $buttonText = $buttonText.$upgradeTo;
27
  }
28
+
29
+ $supportUrl = network_admin_url('admin.php?page=backup_guard_support');
30
+ $openContent = 1;
31
+ if ($pluginCapabilities == BACKUP_GUARD_CAPABILITIES_FREE) {
32
+ $openContent = 0;
33
+ $supportUrl = BACKUP_GUARD_WORDPRESS_SUPPORT_URL;
34
+ }
35
  ?>
36
  <div id="sg-sidebar-wrapper" class="metro">
37
  <a class="sg-site-url" href="<?php echo network_admin_url('admin.php?page=backup_guard_backups'); ?>">
80
  <span class="sg-action-menu-arrow"></span>
81
  </li>
82
  <li class="<?php echo strpos($page,'support')?'active':''?>">
83
+ <a href="<?php echo $supportUrl; ?>" data-page-key="support" data-open-content="<?php echo $openContent; ?>">
84
  <span class="glyphicon glyphicon-envelope" aria-hidden="true"></span><?php _backupGuardT('Support')?>
85
  </a>
86
  <span class="sg-action-menu-arrow"></span>
public/js/main.js CHANGED
@@ -6,7 +6,7 @@ SG_NOTICE_EXECUTION_FREE_TIMEOUT = 'timeout_free_error';
6
  SG_NOTICE_MIGRATION_ERROR = 'migration_error';
7
  SG_NOTICE_NOT_WRITABLE_ERROR = 'restore_notwritable_error';
8
 
9
- jQuery(window).load(function() {
10
  if (jQuery('.sg-active-action-id').length == 0) {
11
  sgBackup.showReviewModal();
12
  }
@@ -108,20 +108,24 @@ sgBackup.navMenu = function ()
108
  navMenu.unbind('click').bind('click', function (event) {
109
  event.preventDefault();
110
  sgBackup.init();
111
- jQuery('.sg-backup-page-content').addClass('sg-visibility-hidden');
112
- jQuery('.sg-backup-sidebar-nav li').removeClass('active');
113
  var currentUrl = jQuery(this).attr('href');
 
114
 
115
- if (currentUrl.indexOf('wordpress.org') != -1) {
116
- window.open(currentUrl);
 
117
  }
118
- var currentKey = jQuery(this).data('page-key');
119
- var currentPageContent = jQuery('#sg-backup-page-content-'+currentKey);
120
 
121
- if (!currentPageContent.length) {
122
- return false;
123
- }
124
- jQuery(this).parent().addClass('active');
 
 
 
125
  currentPageContent.removeClass('sg-visibility-hidden');
126
  });
127
  };
@@ -455,7 +459,7 @@ sgBackup.initTablePagination = function(pageName){
455
  pager = jQuery(settings.pagerSelector);
456
  }
457
 
458
- var numItems = children.size();
459
  var numPages = Math.ceil(numItems/perPage);
460
 
461
  pager.data("curr",0);
@@ -549,4 +553,4 @@ sgBackup.logout = function()
549
  location.reload();
550
  };
551
  ajaxHandler.run();
552
- }
6
  SG_NOTICE_MIGRATION_ERROR = 'migration_error';
7
  SG_NOTICE_NOT_WRITABLE_ERROR = 'restore_notwritable_error';
8
 
9
+ jQuery(window).on('load', function() {
10
  if (jQuery('.sg-active-action-id').length == 0) {
11
  sgBackup.showReviewModal();
12
  }
108
  navMenu.unbind('click').bind('click', function (event) {
109
  event.preventDefault();
110
  sgBackup.init();
111
+
 
112
  var currentUrl = jQuery(this).attr('href');
113
+ var openContent = jQuery(this).data('open-content');
114
 
115
+ if (typeof openContent != 'undefined' && openContent == 0) {
116
+ window.open(currentUrl);
117
+ return true;
118
  }
119
+ jQuery('.sg-backup-page-content').addClass('sg-visibility-hidden');
120
+ jQuery('.sg-backup-sidebar-nav li').removeClass('active');
121
 
122
+ var currentKey = jQuery(this).data('page-key');
123
+ var currentPageContent = jQuery('#sg-backup-page-content-'+currentKey);
124
+
125
+ if (!currentPageContent.length) {
126
+ return false;
127
+ }
128
+ jQuery(this).parent().addClass('active');
129
  currentPageContent.removeClass('sg-visibility-hidden');
130
  });
131
  };
459
  pager = jQuery(settings.pagerSelector);
460
  }
461
 
462
+ var numItems = children.length;
463
  var numPages = Math.ceil(numItems/perPage);
464
 
465
  pager.data("curr",0);
553
  location.reload();
554
  };
555
  ajaxHandler.run();
556
+ };