Version Description
= 2.2.3 = * Fixes problems users had when using localized WordPress installations. * Fixes a bug that caused the size of gzipped backup files to be reported incorrectly.
Download this release
Release Info
Developer | filosofo |
Plugin | ![]() |
Version | 2.3.1 |
Comparing to | |
See all releases |
Code changes from version 2.3.0 to 2.3.1
- README.markdown +3 -3
- readme.txt +4 -4
- wp-db-backup.php +15 -12
README.markdown
CHANGED
@@ -4,9 +4,9 @@ WP-DB-Backup
|
|
4 |
Contributors: filosofo
|
5 |
Donate link: http://austinmatzko.com/wordpress-plugins/wp-db-backup/
|
6 |
Tags: mysql, database, backup, cron
|
7 |
-
Requires at least:
|
8 |
-
Tested up to: 4.
|
9 |
-
Stable tag: 2.3.
|
10 |
|
11 |
On-demand backup of your WordPress database.
|
12 |
|
4 |
Contributors: filosofo
|
5 |
Donate link: http://austinmatzko.com/wordpress-plugins/wp-db-backup/
|
6 |
Tags: mysql, database, backup, cron
|
7 |
+
Requires at least: 3.6.0
|
8 |
+
Tested up to: 4.4.2
|
9 |
+
Stable tag: 2.3.1
|
10 |
|
11 |
On-demand backup of your WordPress database.
|
12 |
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: filosofo
|
3 |
Donate link: http://austinmatzko.com/wordpress-plugins/wp-db-backup/
|
4 |
Tags: mysql, database, backup, cron
|
5 |
-
Requires at least:
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2.3.
|
8 |
|
9 |
On-demand backup of your WordPress database.
|
10 |
|
@@ -17,7 +17,7 @@ Released under the terms of the GNU GPL, version 2.
|
|
17 |
|
18 |
NO WARRANTY.
|
19 |
|
20 |
-
Copyright (c)
|
21 |
|
22 |
[Source Code on GitHub](https://github.com/matzko/wp-db-backup)
|
23 |
|
2 |
Contributors: filosofo
|
3 |
Donate link: http://austinmatzko.com/wordpress-plugins/wp-db-backup/
|
4 |
Tags: mysql, database, backup, cron
|
5 |
+
Requires at least: 3.6.0
|
6 |
+
Tested up to: 4.4.2
|
7 |
+
Stable tag: 2.3.1
|
8 |
|
9 |
On-demand backup of your WordPress database.
|
10 |
|
17 |
|
18 |
NO WARRANTY.
|
19 |
|
20 |
+
Copyright (c) 2016 Austin Matzko
|
21 |
|
22 |
[Source Code on GitHub](https://github.com/matzko/wp-db-backup)
|
23 |
|
wp-db-backup.php
CHANGED
@@ -5,9 +5,9 @@ Plugin URI: https://github.com/matzko/wp-db-backup
|
|
5 |
Description: On-demand backup of your WordPress database. Navigate to <a href="edit.php?page=wp-db-backup">Tools → Backup</a> to get started.
|
6 |
Author: Austin Matzko
|
7 |
Author URI: http://austinmatzko.com/
|
8 |
-
Version: 2.3.
|
9 |
|
10 |
-
Copyright
|
11 |
|
12 |
This program is free software; you can redistribute it and/or modify
|
13 |
it under the terms of the GNU General Public License as published by
|
@@ -298,13 +298,14 @@ class wpdbBackup {
|
|
298 |
';
|
299 |
break;
|
300 |
case 'smtp':
|
301 |
-
|
302 |
-
|
|
|
303 |
}
|
304 |
echo '
|
305 |
-
setProgress("' . sprintf(__('Your backup has been emailed to %s','wp-db-backup'), $
|
306 |
window.onbeforeunload = null;
|
307 |
-
fram.src = "' . $download_uri . '&via=email&recipient=' . $
|
308 |
';
|
309 |
break;
|
310 |
default:
|
@@ -431,9 +432,10 @@ class wpdbBackup {
|
|
431 |
$this->backup_file = $this->db_backup($core_tables, $also_backup);
|
432 |
if (false !== $this->backup_file) {
|
433 |
if ('smtp' == $_POST['deliver']) {
|
434 |
-
$
|
435 |
-
|
436 |
-
|
|
|
437 |
}
|
438 |
wp_redirect($this->page_url);
|
439 |
} elseif ('http' == $_POST['deliver']) {
|
@@ -864,7 +866,7 @@ class wpdbBackup {
|
|
864 |
foreach ($table_data as $row) {
|
865 |
$values = array();
|
866 |
foreach ($row as $key => $value) {
|
867 |
-
if ($ints[strtolower($key)]) {
|
868 |
// make sure there are no blank spots in the insert syntax,
|
869 |
// yet try to avoid quotation marks around integers
|
870 |
$value = ( null === $value || '' === $value) ? $defs[strtolower($key)] : $value;
|
@@ -1147,10 +1149,11 @@ class wpdbBackup {
|
|
1147 |
$feedback .= '<br />' . sprintf(__('Your backup file: %2s should begin downloading shortly.','wp-db-backup'), "{$this->backup_file}", $this->backup_file);
|
1148 |
break;
|
1149 |
case 'smtp':
|
1150 |
-
|
|
|
1151 |
$feedback .= get_option('admin_email');
|
1152 |
} else {
|
1153 |
-
$feedback .= $
|
1154 |
}
|
1155 |
$feedback = '<br />' . sprintf(__('Your backup has been emailed to %s','wp-db-backup'), $feedback);
|
1156 |
break;
|
5 |
Description: On-demand backup of your WordPress database. Navigate to <a href="edit.php?page=wp-db-backup">Tools → Backup</a> to get started.
|
6 |
Author: Austin Matzko
|
7 |
Author URI: http://austinmatzko.com/
|
8 |
+
Version: 2.3.1
|
9 |
|
10 |
+
Copyright 2016 Austin Matzko (email : austin at pressedcode.com)
|
11 |
|
12 |
This program is free software; you can redistribute it and/or modify
|
13 |
it under the terms of the GNU General Public License as published by
|
298 |
';
|
299 |
break;
|
300 |
case 'smtp':
|
301 |
+
$email = sanitize_text_field(wp_unslash($_POST['backup_recipient']));
|
302 |
+
if ( get_option('wpdb_backup_recip') != $email) {
|
303 |
+
update_option('wpdb_backup_recip', $email);
|
304 |
}
|
305 |
echo '
|
306 |
+
setProgress("' . sprintf(__('Your backup has been emailed to %s','wp-db-backup'), $email) . '");
|
307 |
window.onbeforeunload = null;
|
308 |
+
fram.src = "' . $download_uri . '&via=email&recipient=' . $email . '";
|
309 |
';
|
310 |
break;
|
311 |
default:
|
432 |
$this->backup_file = $this->db_backup($core_tables, $also_backup);
|
433 |
if (false !== $this->backup_file) {
|
434 |
if ('smtp' == $_POST['deliver']) {
|
435 |
+
$email = sanitize_text_field(wp_unslash($_POST['backup_recipient']));
|
436 |
+
$this->deliver_backup($this->backup_file, $_POST['deliver'], $email, 'main');
|
437 |
+
if ( get_option('wpdb_backup_recip') != $email ) {
|
438 |
+
update_option('wpdb_backup_recip', $email );
|
439 |
}
|
440 |
wp_redirect($this->page_url);
|
441 |
} elseif ('http' == $_POST['deliver']) {
|
866 |
foreach ($table_data as $row) {
|
867 |
$values = array();
|
868 |
foreach ($row as $key => $value) {
|
869 |
+
if ( !empty($ints[strtolower($key)]) ) {
|
870 |
// make sure there are no blank spots in the insert syntax,
|
871 |
// yet try to avoid quotation marks around integers
|
872 |
$value = ( null === $value || '' === $value) ? $defs[strtolower($key)] : $value;
|
1149 |
$feedback .= '<br />' . sprintf(__('Your backup file: %2s should begin downloading shortly.','wp-db-backup'), "{$this->backup_file}", $this->backup_file);
|
1150 |
break;
|
1151 |
case 'smtp':
|
1152 |
+
$email = sanitize_text_field(wp_unslash($_POST['backup_recipient']));
|
1153 |
+
if (! is_email($email)) {
|
1154 |
$feedback .= get_option('admin_email');
|
1155 |
} else {
|
1156 |
+
$feedback .= $email;
|
1157 |
}
|
1158 |
$feedback = '<br />' . sprintf(__('Your backup has been emailed to %s','wp-db-backup'), $feedback);
|
1159 |
break;
|