UpdraftPlus WordPress Backup Plugin - Version 1.6.2

Version Description

  • 05/11/2013 =
  • FIX: Prevent PHP fatal error on some database restores
Download this release

Release Info

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

Code changes from version 1.6.1 to 1.6.2

Files changed (2) hide show
  1. readme.txt +5 -2
  2. updraftplus.php +9 -8
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: DavidAnderson
3
  Tags: backup, restore, database, rackspace, amazon, s3, dropbox, google drive, ftp, webdav, back up, multisite
4
  Requires at least: 3.1
5
  Tested up to: 3.5.1
6
- Stable tag: 1.6.1
7
  Author URI: http://updraftplus.com
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
@@ -119,6 +119,9 @@ Thanks for asking - yes, I have. Check out my profile page - http://profiles.wor
119
 
120
  == Changelog ==
121
 
 
 
 
122
  = 1.6.1 - 05/06/2013 =
123
  * FEATURE: New "Migrator" add-on for moving sites from one WordPress install to another (http://updraftplus.com/shop/)
124
  * FEATURE: The "More files" add-on can now back up any files from anywhere on your filesystem (not just parts of WordPress)
@@ -455,4 +458,4 @@ We recognise and thank the following for code and/or libraries used and/or modif
455
  Furthermore, reliance upon any non-English translation is at your own risk. UpdraftPlus can give no guarantees that translations from the original English are accurate.
456
 
457
  == Upgrade Notice ==
458
- 1.6.1: Various new features. Small bug fixes + one larger corruption issue in larger Rackspace Cloud Files backups (a bug in Rackspace's library). Recommended update for all. Google Drive users should re-authenticate in order to download or restore (due to a change made by Google).
3
  Tags: backup, restore, database, rackspace, amazon, s3, dropbox, google drive, ftp, webdav, back up, multisite
4
  Requires at least: 3.1
5
  Tested up to: 3.5.1
6
+ Stable tag: 1.6.2
7
  Author URI: http://updraftplus.com
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
119
 
120
  == Changelog ==
121
 
122
+ = 1.6.2 - 05/11/2013 =
123
+ * FIX: Prevent PHP fatal error on some database restores
124
+
125
  = 1.6.1 - 05/06/2013 =
126
  * FEATURE: New "Migrator" add-on for moving sites from one WordPress install to another (http://updraftplus.com/shop/)
127
  * FEATURE: The "More files" add-on can now back up any files from anywhere on your filesystem (not just parts of WordPress)
458
  Furthermore, reliance upon any non-English translation is at your own risk. UpdraftPlus can give no guarantees that translations from the original English are accurate.
459
 
460
  == Upgrade Notice ==
461
+ 1.6.2: Prevent PHP fatal error on some database restores.
updraftplus.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: UpdraftPlus - Backup/Restore
4
  Plugin URI: http://updraftplus.com
5
  Description: Backup and restore: take backups locally, or backup to Amazon S3, Dropbox, Google Drive, Rackspace, (S)FTP, WebDAV & email, on automatic schedules.
6
  Author: UpdraftPlus.Com, DavidAnderson
7
- Version: 1.6.1
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
10
  Text Domain: updraftplus
@@ -651,13 +651,12 @@ class UpdraftPlus {
651
  }
652
 
653
  function jobdata_set($key, $value) {
654
- if (is_array($this->jobdata)) {
655
- $this->jobdata[$key] = $value;
656
- } else {
657
- $this->jobdata = get_transient("updraft_jobdata_".$this->nonce);
658
- if (!is_array($this->jobdata)) $this->jobdata = array($key => $value);
659
- }
660
- set_transient("updraft_jobdata_".$this->nonce, $this->jobdata, 14400);
661
  }
662
 
663
  function jobdata_get($key) {
@@ -1315,6 +1314,8 @@ class UpdraftPlus {
1315
  if ($a == $b) return 0;
1316
  if ($a == $table_prefix.'options') return -1;
1317
  if ($b == $table_prefix.'options') return 1;
 
 
1318
  if ($a == $table_prefix.'usermeta') return -1;
1319
  if ($b == $table_prefix.'usermeta') return 1;
1320
  return strcmp($a, $b);
4
  Plugin URI: http://updraftplus.com
5
  Description: Backup and restore: take backups locally, or backup to Amazon S3, Dropbox, Google Drive, Rackspace, (S)FTP, WebDAV & email, on automatic schedules.
6
  Author: UpdraftPlus.Com, DavidAnderson
7
+ Version: 1.6.2
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
10
  Text Domain: updraftplus
651
  }
652
 
653
  function jobdata_set($key, $value) {
654
+ if (!is_array($this->jobdata)) {
655
+ $this->jobdata = get_transient("updraft_jobdata_".$this->nonce);
656
+ if (!is_array($this->jobdata)) $this->jobdata = array();
657
+ }
658
+ $this->jobdata[$key] = $value;
659
+ set_transient("updraft_jobdata_".$this->nonce, $this->jobdata, 14400);
 
660
  }
661
 
662
  function jobdata_get($key) {
1314
  if ($a == $b) return 0;
1315
  if ($a == $table_prefix.'options') return -1;
1316
  if ($b == $table_prefix.'options') return 1;
1317
+ if ($a == $table_prefix.'users') return -1;
1318
+ if ($b == $table_prefix.'users') return 1;
1319
  if ($a == $table_prefix.'usermeta') return -1;
1320
  if ($b == $table_prefix.'usermeta') return 1;
1321
  return strcmp($a, $b);