UpdraftPlus WordPress Backup Plugin - Version 1.3.10

Version Description

  • 01/25/2013 =
  • 1.3.0 to 1.3.8 had a fatal flaw for people with large backups.
  • 1.3.0 to 1.3.9 gave erroneous information in the email reports on what the backup contained.
Download this release

Release Info

Developer DavidAnderson
Plugin Icon 128x128 UpdraftPlus WordPress Backup Plugin
Version 1.3.10
Comparing to
See all releases

Code changes from version 1.3.9 to 1.3.10

Files changed (2) hide show
  1. readme.txt +4 -3
  2. updraftplus.php +13 -5
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: David Anderson
3
  Tags: backup, restore, database, cloud, amazon, s3, dropbox, google drive, ftp, cloud, back up, multisite
4
  Requires at least: 3.2
5
  Tested up to: 3.5.1
6
- Stable tag: 1.3.9
7
  Donate link: http://david.dw-perspective.org.uk/donate
8
  License: GPLv3 or later
9
 
@@ -141,8 +141,9 @@ Thanks for asking - yes, I have. Check out my profile page - http://profiles.wor
141
 
142
  == Changelog ==
143
 
144
- = 1.3.9 - 01/25/2013 =
145
- * 1.3.0 onwards had a fatal flaw for people with large backups. Fixed now.
 
146
 
147
  = 1.3.8 - 01/24/2013 =
148
  * Fixed faulty assumptions in 'resume' code, now leading to more reliable resuming
3
  Tags: backup, restore, database, cloud, amazon, s3, dropbox, google drive, ftp, cloud, back up, multisite
4
  Requires at least: 3.2
5
  Tested up to: 3.5.1
6
+ Stable tag: 1.3.10
7
  Donate link: http://david.dw-perspective.org.uk/donate
8
  License: GPLv3 or later
9
 
141
 
142
  == Changelog ==
143
 
144
+ = 1.3.10 - 01/25/2013 =
145
+ * 1.3.0 to 1.3.8 had a fatal flaw for people with large backups.
146
+ * 1.3.0 to 1.3.9 gave erroneous information in the email reports on what the backup contained.
147
 
148
  = 1.3.8 - 01/24/2013 =
149
  * Fixed faulty assumptions in 'resume' code, now leading to more reliable resuming
updraftplus.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: UpdraftPlus - Backup/Restore
4
  Plugin URI: http://wordpress.org/extend/plugins/updraftplus
5
  Description: Backup and restore: your content and database can be automatically backed up to Amazon S3, Dropbox, Google Drive, FTP or email, on separate schedules.
6
  Author: David Anderson.
7
- Version: 1.3.9
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
10
  Author URI: http://wordshell.net
@@ -79,7 +79,7 @@ if (!class_exists('UpdraftPlus_Options')) require_once(UPDRAFTPLUS_DIR.'/options
79
 
80
  class UpdraftPlus {
81
 
82
- var $version = '1.3.9';
83
  var $plugin_title = 'UpdraftPlus Backup/Restore';
84
 
85
  // Choices will be shown in the admin menu in the order used here
@@ -483,7 +483,15 @@ class UpdraftPlus {
483
  $backup_files = $this->jobdata_get("backup_files");
484
  $backup_db = $this->jobdata_get("backup_database");
485
 
486
- $backup_contains = (substr($backup_contains,0,10) == "Files only") ? "Files and database" : "Database only (no files)";
 
 
 
 
 
 
 
 
487
 
488
  wp_mail($sendmail_to,'Backed up: '.get_bloginfo('name').' (UpdraftPlus '.$this->version.') '.date('Y-m-d H:i',time()),'Site: '.site_url()."\r\nUpdraftPlus WordPress backup is complete.\r\nBackup contains: ".$backup_contains."\r\n\r\n".$this->wordshell_random_advert(0)."\r\n".$append_log);
489
 
@@ -2049,11 +2057,11 @@ class UpdraftPlus {
2049
  }
2050
 
2051
  function show_admin_warning_dropbox() {
2052
- $this->show_admin_warning('<strong>UpdraftPlus notice:</strong> <a href="?page=updraftplus&action=updraftmethod-dropbox-auth&updraftplus_dropboxauth=doit">Click here to authenticate your Dropbox account (you will not be able to back up to Dropbox without it).');
2053
  }
2054
 
2055
  function show_admin_warning_googledrive() {
2056
- $this->show_admin_warning('<strong>UpdraftPlus notice:</strong> <a href="?page=updraftplus&action=updraftmethod-googledrive-auth&updraftplus_googleauth=doit">Click here to authenticate your Google Drive account (you will not be able to back up to Google Drive without it).');
2057
  }
2058
 
2059
  }
4
  Plugin URI: http://wordpress.org/extend/plugins/updraftplus
5
  Description: Backup and restore: your content and database can be automatically backed up to Amazon S3, Dropbox, Google Drive, FTP or email, on separate schedules.
6
  Author: David Anderson.
7
+ Version: 1.3.10
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
10
  Author URI: http://wordshell.net
79
 
80
  class UpdraftPlus {
81
 
82
+ var $version = '1.3.10';
83
  var $plugin_title = 'UpdraftPlus Backup/Restore';
84
 
85
  // Choices will be shown in the admin menu in the order used here
483
  $backup_files = $this->jobdata_get("backup_files");
484
  $backup_db = $this->jobdata_get("backup_database");
485
 
486
+ if ($backup_files == "finished" && ( $backup_db == "finished" || $backup_db == "encrypted" ) ) {
487
+ $backup_contains = "Files and database";
488
+ } elseif ($backup_files == "finished") {
489
+ $backup_contains = ($backup_db == "begun") ? "Files (database backup has not completed)" : "Files only (database was not part of this particular schedule)";
490
+ } elseif ($backup_db == "finished" || $backup_db == "encrypted") {
491
+ $backup_contains = ($backup_files == "begun") ? "Database (files backup has not completed)" : "Database only (files were not part of this particular schedule)";
492
+ } else {
493
+ $backup_contains = "Unknown/unexpected error - please raise a support request";
494
+ }
495
 
496
  wp_mail($sendmail_to,'Backed up: '.get_bloginfo('name').' (UpdraftPlus '.$this->version.') '.date('Y-m-d H:i',time()),'Site: '.site_url()."\r\nUpdraftPlus WordPress backup is complete.\r\nBackup contains: ".$backup_contains."\r\n\r\n".$this->wordshell_random_advert(0)."\r\n".$append_log);
497
 
2057
  }
2058
 
2059
  function show_admin_warning_dropbox() {
2060
+ $this->show_admin_warning('<strong>UpdraftPlus notice:</strong> <a href="?page=updraftplus&action=updraftmethod-dropbox-auth&updraftplus_dropboxauth=doit">Click here to authenticate your Dropbox account (you will not be able to back up to Dropbox without it).</a>');
2061
  }
2062
 
2063
  function show_admin_warning_googledrive() {
2064
+ $this->show_admin_warning('<strong>UpdraftPlus notice:</strong> <a href="?page=updraftplus&action=updraftmethod-googledrive-auth&updraftplus_googleauth=doit">Click here to authenticate your Google Drive account (you will not be able to back up to Google Drive without it).</a>');
2065
  }
2066
 
2067
  }