WordPress Backup and Migrate Plugin – Backup Guard - Version 1.3.1

Version Description

  • Showing a confirmation alert When deleting multiple backups
Download this release

Release Info

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

Code changes from version 1.3.0 to 1.3.1

Files changed (5) hide show
  1. BackupGuard.php +2 -1
  2. README.txt +5 -2
  3. backup.php +2 -2
  4. com/lib/test.txt +26 -0
  5. public/js/sgbackup.js +3 -0
BackupGuard.php CHANGED
@@ -66,7 +66,8 @@ function before_deactivate_backup_guard()
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
));
71
72
require_once(plugin_dir_path(__FILE__).'public/include/uninstallSurveyPopup.php');
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');
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.4
9
- Stable tag: 1.3.0
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.0 =
161
* Fixed the closing issue with the "Execution timeout" banner
162
* Bug fixed related to Windows server
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.4.1
9
+ Stable tag: 1.3.1
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.1 =
161
+ * Showing a confirmation alert When deleting multiple backups
162
+
163
= 1.3.0 =
164
* Fixed the closing issue with the "Execution timeout" banner
165
* Bug fixed related to Windows server
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.0
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.0');
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.1
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.1');
20
}
21
22
if (!defined('SG_BACKUP_GUARD_MAIN_FILE')) {
com/lib/test.txt ADDED
@@ -0,0 +1,26 @@
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
+ )
public/js/sgbackup.js CHANGED
@@ -30,6 +30,9 @@ jQuery(document).ready( function() {
30
});
31
32
jQuery('#sg-delete-multi-backups').on('click', function(){
33
var backups = jQuery('tbody input[type="checkbox"]:checked');
34
var backupNames = [];
35
backups.each(function(i){
30
});
31
32
jQuery('#sg-delete-multi-backups').on('click', function(){
33
+ if (!confirm(BG_BACKUP_STRINGS.areYouSure)) {
34
+ return false;
35
+ }
36
var backups = jQuery('tbody input[type="checkbox"]:checked');
37
var backupNames = [];
38
backups.each(function(i){