PluginProbe
WP Database Backup – Unlimited Database & Files Backup by Backup for WP / 7.4
WP Database Backup – Unlimited Database & Files Backup by Backup for WP v7.4
7.13 7.12 trunk 1.1 2.1.1 5.9 6.0 6.1 6.10 6.11 6.12 6.12.1 6.2 6.3 6.4 6.5 6.5.1 6.6 6.7 6.8 6.9 7.0 7.0.1 7.1 7.10 All 34 releases
← All changes | includes/admin/admin-header-notification.php +26 -19 6.37.4 View file →
@@ -7,36 +7,43 @@
7 7
8 8 if (!defined('ABSPATH')) {
9 9 exit;
10 10 } // Exit if accessed directly
11 -$loader_gif = esc_url(WPDB_PLUGIN_URL) . "/assets/images/icon_loading.gif";
12 -$success_png = esc_url(WPDB_PLUGIN_URL) . "/assets/images/success.png";
13 11 $wpdbbkp_bg_notify = get_option('wpdbbkp_dashboard_notify',false);
14 -if (true === isset($_GET['notification']) && true === isset($_GET['_wpnonce']) && wp_verify_nonce(sanitize_text_field(wp_unslash($_GET['_wpnonce'])), 'wp-database-backup') || $wpdbbkp_bg_notify) { ?>
12 +if (true === isset($_GET['notification']) && true === isset($_GET['_wpnonce']) && wp_verify_nonce( wp_unslash( $_GET['_wpnonce']) , 'wp-database-backup') || $wpdbbkp_bg_notify) { //phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- using as nonce ?>
15 13
16 - <div class="text-center wpdbbkp_notification"><img width="50" height="50" src="<?php echo $success_png; ?>">
17 - <h4 class="text-success"><?php if ('create' === $_GET['notification'] || $wpdbbkp_bg_notify=='create') {
14 + <div class="text-center wpdbbkp_notification"><img width="50" height="50" src="<?php echo esc_url(WPDB_PLUGIN_URL. "/assets/images/success.png"); /* phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage */ ?>">
15 + <h4 class="text-success"><?php if ((isset($_GET['notification']) && 'create' === $_GET['notification']) || $wpdbbkp_bg_notify=='create') {
18 16 $backup_list = get_option('wp_db_backup_backups');
19 - $download_backup = end($backup_list);
20 - if($download_backup && !empty($download_backup))
21 - { $backup_link = '<a href="' . esc_url($download_backup['url']) . '" style="color: #21759B;">' . __('Click Here to Download Backup.', 'wpdbbkp') . '</a>';}
17 + if(!empty($backup_list) && is_array($backup_list)){
18 + $download_backup = end($backup_list);
19 + if($download_backup && !empty($download_backup) && isset($download_backup['url']))
20 + {
21 + $backup_link = '<a href="' . esc_url(admin_url('?wpdbbkp_download='.basename($download_backup['url']))) . '" style="color: #21759B;">' . __('Click Here to Download Backup.', 'wpdbbkp') . '</a>';
22 + }
23 + }
24 +
22 25 update_option('wpdbbkp_dashboard_notify',false);
23 - esc_attr_e('Backup Created Successfully. ', 'wpdbbkp');
26 + esc_html_e('Backup Created Successfully. ', 'wpdbbkp');
24 27 } elseif ('restore' === $_GET['notification']) {
25 - esc_attr_e('Backup Restore Successfully', 'wpdbbkp');
26 - } elseif ('delete' === $_GET['notification']) {
27 - esc_attr_e('Backup deleted Successfully', 'wpdbbkp');
28 + esc_html_e('Backup Restore Successfully', 'wpdbbkp');
29 + } elseif ('restore_limit' === $_GET['notification']) {
30 + esc_html_e('Restore Limit for Backup reached. Please update to PRO to remove this limit', 'wpdbbkp');
31 + }elseif ('delete' === $_GET['notification']) {
32 + esc_html_e('Backup deleted Successfully', 'wpdbbkp');
33 + }elseif ('deleteall' === $_GET['notification']) {
34 + esc_html_e('All Backup data is deleted Successfully', 'wpdbbkp');
28 35 } elseif ('clear_temp_db_backup_file' === $_GET['notification']) {
29 - esc_attr_e('Clear all old/temp database backup files Successfully', 'wpdbbkp');
36 + esc_html_e('Clear all old/temp database backup files Successfully', 'wpdbbkp');
30 37 } elseif ('Invalid' === $_GET['notification']) {
31 - esc_attr_e('Invalid Access!!!!', 'wpdbbkp');
38 + esc_html_e('Invalid Access!!!!', 'wpdbbkp');
32 39 } elseif ('deleteauth' === $_GET['notification']) {
33 - esc_attr_e('Dropbox account unlink Successfully', 'wpdbbkp');
40 + esc_html_e('Dropbox account unlink Successfully', 'wpdbbkp');
34 41 } elseif ('save' === $_GET['notification']) {
35 - esc_attr_e('Backup Setting Saved Successfully', 'wpdbbkp');
42 + esc_html_e('Backup Setting Saved Successfully', 'wpdbbkp');
36 43 }
37 44 ?></h4>
38 - <?php if ('create' === $_GET['notification']) { ?>
45 + <?php if (isset($_GET['notification']) && 'create' === $_GET['notification'] && isset($backup_link)) { ?>
39 46 <h5 class="text-success"><strong><?php echo wp_kses_post($backup_link); ?> </strong></h5>
40 47 <?php } ?>
41 48 </div>
42 49 <?php } ?>
@@ -41,9 +48,9 @@
41 48 </div>
42 49 <?php } ?>
43 50
44 51 <div id="wpdb-backup-process" style="display:none">
45 - <div class="text-center"><img width="50" height="50" src="<?php echo $loader_gif; ?>">
52 + <div class="text-center"><img width="50" height="50" src="<?php echo esc_url(WPDB_PLUGIN_URL . "/assets/images/icon_loading.gif"); /* phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage */ ?>">
46 53 <h5 class="text-success"><strong><?php echo esc_html__('Backup process is working in background, it may take some time depending on size of your
47 54 website. You can close this tab if you want', 'wpdbbkp') ?></strong></h5>
48 55 <div class="progress">
49 56 <div id="wpdbbkp_progressbar" class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"
@@ -55,10 +62,10 @@
55 62 </div>
56 63 </div>
57 64
58 65 <div id="backup_process" style="display:none">
59 - <div class="text-center"><img width="50" height="50" src="<?php echo $loader_gif; ?>">
66 + <div class="text-center"><img width="50" height="50" src="<?php echo esc_url(WPDB_PLUGIN_URL . "/assets/images/icon_loading.gif"); /* phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage */ ?>">
60 67 <h4 class="text-success" id="wpdbbkup_process_stats"><?php echo esc_html__('Creating Database Backup...', 'wpdbbkp') ?></h4>
61 68 <h5 class="text-success"><strong><?php echo esc_html__('It may take some time depending on size of your
62 69 Database. Do not close this window.', 'wpdbbkp') ?></strong></h5>
63 70 </div>
64 71 </div>