UpdraftPlus WordPress Backup Plugin - Version 1.9.46

Version Description

  • 2014-12-29 =

  • FEATURE: Chunked/resumable uploads are now supported for SFTP

  • FIX: Scan for existing backup sets added manually to local storage in recent versions could overlook some unless clicked twice, in non-GMT timezones

  • TWEAK: Work-around issue in Manage WP worker plugin which caused a crash when authenticating with Dropbox

  • TWEAK: Prevent PHP notice when listing files on SFTP server

  • TWEAK: Reset an internal upload counter used to detect activity when a cloud storage switch is made due to no apparent activity - could prevent some large, long-running uploads on hosts with little available execution time

Download this release

Release Info

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

Code changes from version 1.9.45 to 1.9.46

admin.php CHANGED
@@ -105,6 +105,7 @@ class UpdraftPlus_Admin {
105
 
106
  public function admin_enqueue_scripts() {
107
 
 
108
  wp_enqueue_style('jquery-ui', UPDRAFTPLUS_URL.'/includes/jquery-ui-1.8.22.custom.css');
109
 
110
  global $wp_version;
105
 
106
  public function admin_enqueue_scripts() {
107
 
108
+ wp_deregister_style('jquery-ui');
109
  wp_enqueue_style('jquery-ui', UPDRAFTPLUS_URL.'/includes/jquery-ui-1.8.22.custom.css');
110
 
111
  global $wp_version;
includes/Dropbox/Exception.php CHANGED
@@ -6,10 +6,8 @@
6
  * @link https://github.com/benthedesigner/dropbox
7
  * @package Dropbox
8
  */
9
- if (!class_exists('Dropbox_Exception')):
10
  class Dropbox_Exception extends Exception {
11
  }
12
- endif;
13
 
14
  class Dropbox_BadRequestException extends Exception {
15
  }
6
  * @link https://github.com/benthedesigner/dropbox
7
  * @package Dropbox
8
  */
 
9
  class Dropbox_Exception extends Exception {
10
  }
 
11
 
12
  class Dropbox_BadRequestException extends Exception {
13
  }
includes/phpseclib/Net/SCP.php CHANGED
@@ -129,7 +129,7 @@ class Net_SCP
129
  }
130
 
131
  switch (strtolower(get_class($ssh))) {
132
- case'net_ssh2':
133
  $this->mode = NET_SCP_SSH2;
134
  break;
135
  case 'net_ssh1':
@@ -196,7 +196,6 @@ class Net_SCP
196
 
197
  $fp = @fopen($data, 'rb');
198
  if (!$fp) {
199
- fclose($fp);
200
  return false;
201
  }
202
  $size = filesize($data);
129
  }
130
 
131
  switch (strtolower(get_class($ssh))) {
132
+ case 'net_ssh2':
133
  $this->mode = NET_SCP_SSH2;
134
  break;
135
  case 'net_ssh1':
196
 
197
  $fp = @fopen($data, 'rb');
198
  if (!$fp) {
 
199
  return false;
200
  }
201
  $size = filesize($data);
includes/phpseclib/Net/SFTP.php CHANGED
@@ -1460,7 +1460,7 @@ class Net_SFTP extends Net_SSH2 {
1460
  * @access public
1461
  * @internal ASCII mode for SFTPv4/5/6 can be supported by adding a new function - Net_SFTP::setMode().
1462
  */
1463
- function put($remote_file, $data, $mode = NET_SFTP_STRING, $start = -1, $local_start = -1)
1464
  {
1465
  if (!($this->bitmap & NET_SSH2_MASK_LOGIN)) {
1466
  return false;
@@ -1547,6 +1547,9 @@ class Net_SFTP extends Net_SSH2 {
1547
  }
1548
  $sent+= strlen($temp);
1549
 
 
 
 
1550
  $i++;
1551
 
1552
  if ($i == 50) {
1460
  * @access public
1461
  * @internal ASCII mode for SFTPv4/5/6 can be supported by adding a new function - Net_SFTP::setMode().
1462
  */
1463
+ function put($remote_file, $data, $mode = NET_SFTP_STRING, $start = -1, $local_start = -1, $callback = null)
1464
  {
1465
  if (!($this->bitmap & NET_SSH2_MASK_LOGIN)) {
1466
  return false;
1547
  }
1548
  $sent+= strlen($temp);
1549
 
1550
+ if (is_callable($callback)) {
1551
+ call_user_func($callback, $sent);
1552
+ }
1553
  $i++;
1554
 
1555
  if ($i == 50) {
includes/updraft-admin-ui.js CHANGED
@@ -117,10 +117,14 @@ function updraft_activejobs_update(force) {
117
  downloaders: downloaders
118
  }
119
 
120
- if (jQuery("#updraft-poplog").dialog("isOpen")) {
121
- gdata.log_fetch = 1;
122
- gdata.log_nonce = updraft_poplog_log_nonce;
123
- gdata.log_pointer = updraft_poplog_log_pointer
 
 
 
 
124
  }
125
 
126
  jQuery.get(ajaxurl, gdata, function(response) {
@@ -1213,4 +1217,4 @@ jQuery(document).ready(function($){
1213
  $(this).unbind("touchstart click.triple", data, tripleHandler);
1214
  }
1215
  };
1216
- })(jQuery);
117
  downloaders: downloaders
118
  }
119
 
120
+ try {
121
+ if (jQuery("#updraft-poplog").dialog("isOpen")) {
122
+ gdata.log_fetch = 1;
123
+ gdata.log_nonce = updraft_poplog_log_nonce;
124
+ gdata.log_pointer = updraft_poplog_log_pointer
125
+ }
126
+ } catch (err) {
127
+ console.log(err);
128
  }
129
 
130
  jQuery.get(ajaxurl, gdata, function(response) {
1217
  $(this).unbind("touchstart click.triple", data, tripleHandler);
1218
  }
1219
  };
1220
+ })(jQuery);
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Backup with UpdraftPlus, DavidAnderson
3
  Tags: backup, backups, restore, amazon backup, s3 backup, dropbox backup, google drive backup, rackspace cloud files, rackspace backup, cloud files, dreamhost, dreamobjects backup, ftp backup, webdav backup, google cloud storage, cloudian, cloudn, connectria, constant cloud, eucalyptus, nifty, nimbula, back up, multisite, restoration, sftp backup, ftps, scp, migrate, duplicate, copy, mysql backup, database backup, db backup, website backup, wordpress backup, full backup, openstack, swift
4
  Requires at least: 3.2
5
  Tested up to: 4.1
6
- Stable tag: 1.9.45
7
  Author URI: http://updraftplus.com
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
@@ -16,7 +16,7 @@ Backup and restoration made easy. Complete backups; manual or scheduled (backup
16
 
17
  <strong>Top-quality:</strong> UpdraftPlus is the <a href="http://rankwp.com/plugins/updraftplus">highest-ranking backup plugin on rankwp.com</a> (ranks in the top 40 out of 30,000 WordPress plugins for quality on rankwp.com - last checked 21 September 2014).
18
 
19
- <strong>Tens of thousands of users:</strong> widely tested and reliable (over 1.4 million downloads). Ranks in the top 100 most used of all WordPress plugins on rankwp.com. Millions of backups completed!
20
 
21
  * Supports WordPress backups to Amazon S3 (or compatible), Dropbox, Rackspace Cloud Files, Google Drive, Google Cloud Storage, DreamHost DreamObjects, FTP, OpenStack (Swift) and email. Also (via an add-on) Copy.Com, FTP over SSL, SFTP, SCP, and WebDAV (and compatible services, e.g. Yandex, Cubby). (Note: Microsoft forbid OneDrive/SkyDrive to be used by backup software). Some examples of S3-compatible providers: Cloudian, Connectria, Constant, Eucalyptus, Nifty, Nimbula, Cloudn.
22
  * Quick restore (both file and database backups)
@@ -153,6 +153,14 @@ Thanks for asking - yes, I have. Check out my profile page - http://profiles.wor
153
 
154
  The <a href="http://updraftplus.com/news/">UpdraftPlus backup blog</a> is the best place to learn in more detail about any important changes.
155
 
 
 
 
 
 
 
 
 
156
  = 1.9.45 - 2014-12-20 =
157
 
158
  * FIX: Fix case in which the database imported from a BackWPUp backup could be falsely identified as missing (introduced in 1.9.40)
@@ -1013,4 +1021,4 @@ Furthermore, reliance upon any non-English translation is at your own risk. Updr
1013
 
1014
 
1015
  == Upgrade Notice ==
1016
- * 1.9.45 : Fix bug (since 1.9.19) that could cause scheduled backups to be skipped if using ALTERNATE_WP_CRON in wp-config.php
3
  Tags: backup, backups, restore, amazon backup, s3 backup, dropbox backup, google drive backup, rackspace cloud files, rackspace backup, cloud files, dreamhost, dreamobjects backup, ftp backup, webdav backup, google cloud storage, cloudian, cloudn, connectria, constant cloud, eucalyptus, nifty, nimbula, back up, multisite, restoration, sftp backup, ftps, scp, migrate, duplicate, copy, mysql backup, database backup, db backup, website backup, wordpress backup, full backup, openstack, swift
4
  Requires at least: 3.2
5
  Tested up to: 4.1
6
+ Stable tag: 1.9.46
7
  Author URI: http://updraftplus.com
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
16
 
17
  <strong>Top-quality:</strong> UpdraftPlus is the <a href="http://rankwp.com/plugins/updraftplus">highest-ranking backup plugin on rankwp.com</a> (ranks in the top 40 out of 30,000 WordPress plugins for quality on rankwp.com - last checked 21 September 2014).
18
 
19
+ <strong>Tens of thousands of users:</strong> widely tested and reliable (over 1.6 million downloads). Ranks in the top 100 most used of all WordPress plugins on rankwp.com. Millions of backups completed!
20
 
21
  * Supports WordPress backups to Amazon S3 (or compatible), Dropbox, Rackspace Cloud Files, Google Drive, Google Cloud Storage, DreamHost DreamObjects, FTP, OpenStack (Swift) and email. Also (via an add-on) Copy.Com, FTP over SSL, SFTP, SCP, and WebDAV (and compatible services, e.g. Yandex, Cubby). (Note: Microsoft forbid OneDrive/SkyDrive to be used by backup software). Some examples of S3-compatible providers: Cloudian, Connectria, Constant, Eucalyptus, Nifty, Nimbula, Cloudn.
22
  * Quick restore (both file and database backups)
153
 
154
  The <a href="http://updraftplus.com/news/">UpdraftPlus backup blog</a> is the best place to learn in more detail about any important changes.
155
 
156
+ = 1.9.46 - 2014-12-29 =
157
+
158
+ * FEATURE: Chunked/resumable uploads are now supported for SFTP
159
+ * FIX: Scan for existing backup sets added manually to local storage in recent versions could overlook some unless clicked twice, in non-GMT timezones
160
+ * TWEAK: Work-around issue in Manage WP worker plugin which caused a crash when authenticating with Dropbox
161
+ * TWEAK: Prevent PHP notice when listing files on SFTP server
162
+ * TWEAK: Reset an internal upload counter used to detect activity when a cloud storage switch is made due to no apparent activity - could prevent some large, long-running uploads on hosts with little available execution time
163
+
164
  = 1.9.45 - 2014-12-20 =
165
 
166
  * FIX: Fix case in which the database imported from a BackWPUp backup could be falsely identified as missing (introduced in 1.9.40)
1021
 
1022
 
1023
  == Upgrade Notice ==
1024
+ * 1.9.46 : Small tweaks + improvements, including fix incompatibility of Dropbox when ManageWP worker plugin was installed. Recommended update for all.
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.9.45
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
10
  Text Domain: updraftplus
@@ -79,6 +79,7 @@ if (!is_admin() && (!defined('DOING_CRON') || !DOING_CRON) && (!defined('XMLRPC_
79
  if ( !defined('ALTERNATE_WP_CRON') || !ALTERNATE_WP_CRON || !empty($_POST) || defined('DOING_AJAX') || isset($_GET['doing_wp_cron'])) return;
80
 
81
  // The check below is the one used by spawn_cron() to decide whether cron events should be run
 
82
  $lock = get_transient('doing_cron');
83
  if ( $lock > $gmt_time + 10 * 60 ) $lock = 0;
84
  if ( $lock + WP_CRON_LOCK_TIMEOUT > $gmt_time ) return;
@@ -90,7 +91,6 @@ if (!is_admin() && (!defined('DOING_CRON') || !DOING_CRON) && (!defined('XMLRPC_
90
  if (!is_array($crons)) return;
91
 
92
  $keys = array_keys( $crons );
93
- $gmt_time = microtime( true );
94
  if ( isset($keys[0]) && $keys[0] > $gmt_time ) return;
95
  // If we got this far, then cron is going to be fired, so we do want to load all our hooks
96
  }
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.9.46
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
10
  Text Domain: updraftplus
79
  if ( !defined('ALTERNATE_WP_CRON') || !ALTERNATE_WP_CRON || !empty($_POST) || defined('DOING_AJAX') || isset($_GET['doing_wp_cron'])) return;
80
 
81
  // The check below is the one used by spawn_cron() to decide whether cron events should be run
82
+ $gmt_time = microtime( true );
83
  $lock = get_transient('doing_cron');
84
  if ( $lock > $gmt_time + 10 * 60 ) $lock = 0;
85
  if ( $lock + WP_CRON_LOCK_TIMEOUT > $gmt_time ) return;
91
  if (!is_array($crons)) return;
92
 
93
  $keys = array_keys( $crons );
 
94
  if ( isset($keys[0]) && $keys[0] > $gmt_time ) return;
95
  // If we got this far, then cron is going to be fired, so we do want to load all our hooks
96
  }