UpdraftPlus WordPress Backup Plugin - Version 1.2.44

Version Description

  • 01/22/2013 =
  • Easier Dropbox setup (we are now an official production app)
  • New button to delete all existing settings
  • Admin console now displays rolling status updates
  • Feature: choose how many files and databases to retain separately
  • Fixed bug with checking access token on Google Drive restore
  • Fixed bug producing copious warnings in PHP log
  • Fixed bug in automated restoration processes
  • Possibly fixed settings saving bug in RTL installations
  • Fix erroneous display of max_execution_time warning
Download this release

Release Info

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

Code changes from version 1.2.43 to 1.2.44

Files changed (2) hide show
  1. readme.txt +3 -2
  2. updraftplus.php +13 -8
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: David Anderson
3
  Tags: backup, restore, database, cloud, amazon, s3, dropbox, google drive, gdrive, ftp, cloud, updraft, back up
4
  Requires at least: 3.2
5
  Tested up to: 3.5
6
- Stable tag: 1.2.43
7
  Donate link: http://david.dw-perspective.org.uk/donate
8
  License: GPLv3 or later
9
 
@@ -132,7 +132,7 @@ Thanks for asking - yes, I have. Check out my profile page - http://profiles.wor
132
 
133
  == Changelog ==
134
 
135
- = 1.2.42 - 01/19/2013 =
136
  * Easier Dropbox setup (we are now an official production app)
137
  * New button to delete all existing settings
138
  * Admin console now displays rolling status updates
@@ -141,6 +141,7 @@ Thanks for asking - yes, I have. Check out my profile page - http://profiles.wor
141
  * Fixed bug producing copious warnings in PHP log
142
  * Fixed bug in automated restoration processes
143
  * Possibly fixed settings saving bug in RTL installations
 
144
 
145
  = 1.2.31 - 01/15/2013 =
146
  * Fixed bug with Dropbox deletions
3
  Tags: backup, restore, database, cloud, amazon, s3, dropbox, google drive, gdrive, ftp, cloud, updraft, back up
4
  Requires at least: 3.2
5
  Tested up to: 3.5
6
+ Stable tag: 1.2.44
7
  Donate link: http://david.dw-perspective.org.uk/donate
8
  License: GPLv3 or later
9
 
132
 
133
  == Changelog ==
134
 
135
+ = 1.2.44 - 01/22/2013 =
136
  * Easier Dropbox setup (we are now an official production app)
137
  * New button to delete all existing settings
138
  * Admin console now displays rolling status updates
141
  * Fixed bug producing copious warnings in PHP log
142
  * Fixed bug in automated restoration processes
143
  * Possibly fixed settings saving bug in RTL installations
144
+ * Fix erroneous display of max_execution_time warning
145
 
146
  = 1.2.31 - 01/15/2013 =
147
  * Fixed bug with Dropbox deletions
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.2.43
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
10
  Author URI: http://wordshell.net
@@ -68,7 +68,7 @@ define('UPDRAFT_DEFAULT_OTHERS_EXCLUDE','upgrade,cache,updraft,index.php');
68
 
69
  class UpdraftPlus {
70
 
71
- var $version = '1.2.43';
72
 
73
  // Choices will be shown in the admin menu in the order used here
74
  var $backup_methods = array (
@@ -974,10 +974,14 @@ class UpdraftPlus {
974
 
975
  foreach ($stitch_files as $table_file) {
976
  $this->log("{$table_file}.gz: adding to final database dump");
977
- $handle = gzopen($updraft_dir.'/'.$table_file.'.gz', "r");
978
- while (!gzeof($handle)) { $this->stow(gzread($handle, 65536)); }
979
- gzclose($handle);
980
- @unlink($updraft_dir.'/'.$table_file.'.gz');
 
 
 
 
981
  }
982
 
983
  if (defined("DB_CHARSET")) {
@@ -1326,7 +1330,7 @@ class UpdraftPlus {
1326
  $remote_obj = new $objname;
1327
  $remote_obj->download($file);
1328
  } else {
1329
- $this->error('Automatic backup restoration is not available with the method: $service.');
1330
  }
1331
 
1332
  }
@@ -1466,7 +1470,8 @@ class UpdraftPlus {
1466
  }
1467
 
1468
  function execution_time_check($time) {
1469
- return (ini_get('max_execution_time') >= $time)?true:false;
 
1470
  }
1471
 
1472
  function register_settings() {
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.2.44
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
10
  Author URI: http://wordshell.net
68
 
69
  class UpdraftPlus {
70
 
71
+ var $version = '1.2.44';
72
 
73
  // Choices will be shown in the admin menu in the order used here
74
  var $backup_methods = array (
974
 
975
  foreach ($stitch_files as $table_file) {
976
  $this->log("{$table_file}.gz: adding to final database dump");
977
+ if (!$handle = gzopen($updraft_dir.'/'.$table_file.'.gz', "r")) {
978
+ $this->log("Error: Failed to open database file for reading: ${table_file}.gz");
979
+ $this->error(" Failed to open database file for reading: ${table_file}.gz");
980
+ } else {
981
+ while (!gzeof($handle)) { $this->stow(gzread($handle, 65536)); }
982
+ gzclose($handle);
983
+ @unlink($updraft_dir.'/'.$table_file.'.gz');
984
+ }
985
  }
986
 
987
  if (defined("DB_CHARSET")) {
1330
  $remote_obj = new $objname;
1331
  $remote_obj->download($file);
1332
  } else {
1333
+ $this->error("Automatic backup restoration is not available with the method: $service.");
1334
  }
1335
 
1336
  }
1470
  }
1471
 
1472
  function execution_time_check($time) {
1473
+ $setting = ini_get('max_execution_time');
1474
+ return ( $setting==0 || $setting >= $time) ? true : false;
1475
  }
1476
 
1477
  function register_settings() {