Skip to content

Commit 5d6634b

Browse files
committed
8.7.2.0 Release
Signed-off-by: Kolja Nolte <kolja.nolte@gmail.com>
1 parent 4f15d72 commit 5d6634b

29 files changed

Lines changed: 276 additions & 359 deletions

.DS_Store

6 KB
Binary file not shown.

backupbuddy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: BackupBuddy
44
* Plugin URI: http://ithemes.com/purchase/backupbuddy/
55
* Description: The most complete WordPress solution for Backup, Restoration, Migration, and Deployment to the same host or a new domain. Backs up a customizable selection of files, settings, and content for a complete snapshot of your site. Stash Live feature allows for real-time live backups to the cloud.
6-
* Version: 8.6.2.0
6+
* Version: 8.7.2.0
77
* Author: iThemes
88
* Author URI: http://ithemes.com/
99
* iThemes Package: backupbuddy

classes/api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public static function deleteSchedule( $scheduleID, $confirm = false ) {
167167

168168

169169
// $sha1 = whether or not to use sha1 for file comparison. performance hit. bool or '1'/'0'. $destinationSettings = array of dest settings.
170-
public static function getPreDeployInfo( $sha1 = false, $destinationSettings ) {
170+
public static function getPreDeployInfo( $sha1 = false, $destinationSettings = array() ) {
171171
self::_before();
172172

173173
if ( '1' == $sha1 ) {

classes/backup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public function start_backup_process( $profile, $trigger = 'manual', $pre_backup
270270
*
271271
* @return bool True on success; false otherwise.
272272
*/
273-
public function pre_backup( $serial, $archiveFile, $profile, $trigger, $pre_backup = array(), $post_backup = array(), $schedule_title = '', $export_plugins = array(), $deployDirection, $deployDestinationSettings ) {
273+
public function pre_backup( $serial, $archiveFile, $profile, $trigger, $pre_backup = array(), $post_backup = array(), $schedule_title = '', $export_plugins = array(), $deployDirection = '', $deployDestinationSettings = array() ) {
274274

275275
pb_backupbuddy::status(
276276
'startFunction',

classes/remote_api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public static function shutdown_function() {
120120
* @param bool $returnRaw When true returns body raw text/data rather than decoding encoded data first.
121121
*
122122
*/
123-
public static function remoteCall( $remoteAPI, $verb, $moreParams = array(), $timeout, $files = array(), $returnRaw = false ) {
123+
public static function remoteCall( $remoteAPI, $verb, $moreParams = array(), $timeout = null, $files = array(), $returnRaw = false ) {
124124
pb_backupbuddy::status( 'details', 'Preparing remote API call verb `' . $verb . '`.' );
125125
$now = time();
126126

composer.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
{
22
"name": "wordpress-premium/backupbuddy",
33
"type": "wordpress-plugin",
4-
"version": "8.6.2.0 ",
5-
"time": "2020-10-07",
4+
"version": "8.7.2.0 ",
5+
"time": "2020-12-22",
6+
"author": "Brian DiChiara",
67
"require": {
7-
"composer/installers": ">=1.0"
8+
"composer/installers": ">=1.6",
9+
"krizalys/onedrive-php-sdk": "^2.6",
10+
"stevenmaguire/oauth2-dropbox": "^3.0",
11+
"google/apiclient": "^2.4",
12+
"monolog/monolog": "1.25.3"
813
},
9-
"license": "GPLv2 or later"
14+
"license": "GPLv3 or later"
1015
}

destinations/_s3lib/aws-sdk/utilities/simplexml.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function __toString()
104104
* @param boolean $is_prefix (Optional) (No description provided by PHP.net.)
105105
* @return CFSimpleXML Creates a new <CFSimpleXML> element.
106106
*/
107-
public static function init($data, $options = 0, $data_is_url, $ns, $is_prefix = false)
107+
public static function init($data, $options = 0, $data_is_url = false, $ns = '', $is_prefix = false)
108108
{
109109
if (version_compare(PHP_VERSION, '5.3.0', '<'))
110110
{

destinations/dropbox2/init.php

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private static function _normalizeSettings( $settings ) {
9191
* @param array $file Array of one or more files to send.
9292
* @return boolean True on success single-process, array on multipart with remaining steps, else false (failed).
9393
*/
94-
public static function send( $settings = array(), $file, $send_id = '', $delete_after = false ) {
94+
public static function send( $settings = array(), $file = '', $send_id = '', $delete_after = false ) {
9595
global $pb_backupbuddy_destination_errors;
9696
if ( '1' == $settings['disabled'] ) {
9797
$pb_backupbuddy_destination_errors[] = __( 'Error #48933: This destination is currently disabled. Enable it under this destination\'s Advanced Settings.', 'it-l10n-backupbuddy' );
@@ -494,19 +494,16 @@ public static function listFiles( $settings = array() ) {
494494

495495
} // End listFiles().
496496

497-
498-
499-
/* getFile()
500-
*
497+
/**
501498
* Download a file to local.
502499
*
503-
* @param array $settings Destination settings.
504-
* @param string $remote_file Remote file to retrieve. Filename only. Directory, path, bucket, etc handled in $destination_settings.
505-
* @param string $local_file Local file to save to.
506-
* @return array|boolean Array of items in directory OR bool FALSE on failure.
500+
* @param array $settings Destination settings.
501+
* @param string $remote_file Remote file to retrieve. Filename only. Directory, path, bucket, etc handled in $destination_settings.
502+
* @param string $local_file Local file to save to.
503+
*
504+
* @return array|bool Array of items in directory OR bool FALSE on failure.
507505
*/
508-
public static function getFile( $settings = array(), $remote_file, $local_file ) {
509-
506+
public static function getFile( $settings = array(), $remote_file = '', $local_file = '' ) {
510507
pb_backupbuddy::status( 'details', 'Dropbox2 List Function Started.' );
511508

512509
// Normalize settings, apply defaults, etc.
@@ -517,7 +514,6 @@ public static function getFile( $settings = array(), $remote_file, $local_file )
517514
return false;
518515
}
519516

520-
521517
// Open local file to write to.
522518
$f = @fopen( $local_file, 'w+b' );
523519
if ( false === $f ) {
@@ -550,16 +546,15 @@ public static function getFile( $settings = array(), $remote_file, $local_file )
550546

551547
} // End getFile().
552548

553-
554-
555-
/* delete()
549+
/**
550+
* Delete files in this destination & directory. Path / directory provided in settings.
556551
*
557-
* Delete files in this destination & directory. Path / directory provided in settings.
552+
* @param array $settings Destination settings.
553+
* @param array $file_or_files File or array of files.
558554
*
559-
* @param array $settings Destination settings.
560-
* @return bool|string Bool TRUE on success, else string error message.
555+
* @return bool|string Bool TRUE on success, else string error message.
561556
*/
562-
public static function delete( $settings = array(), $file_or_files ) {
557+
public static function delete( $settings = array(), $file_or_files = array() ) {
563558

564559
if ( ! is_array( $file_or_files ) ) {
565560
$files = array( $file_or_files );

destinations/live/init.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class pb_backupbuddy_destination_live {
102102
* @param array $file Array of one or more files to send.
103103
* @return boolean True on success, else false.
104104
*/
105-
public static function send( $settings = array(), $file, $send_id = '', $delete_after = false ) {
105+
public static function send( $settings = array(), $file = '', $send_id = '', $delete_after = false ) {
106106
$settings = self::_init( $settings );
107107
//return true;
108108
global $pb_backupbuddy_destination_errors;

destinations/rackspace/lib/rackspace/cloudfiles_http.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ function __construct($api_version)
163163
# variable.
164164
$OS_CAFILE_NONUPDATED=array(
165165
"win","dar"
166-
);
166+
);
167167

168168
if (in_array((strtolower (substr(PHP_OS, 0,3))), $OS_CAFILE_NONUPDATED))
169169
$this->ssl_use_cabundle();
170-
170+
171171
}
172172

173173
function ssl_use_cabundle($path=NULL)
@@ -239,7 +239,7 @@ function list_cdn_containers($enabled_only)
239239
$this->_write_callback_type = "TEXT_LIST";
240240
if ($enabled_only)
241241
{
242-
$return_code = $this->_send_request($conn_type, $url_path .
242+
$return_code = $this->_send_request($conn_type, $url_path .
243243
'/?enabled_only=true');
244244
}
245245
else
@@ -287,7 +287,7 @@ function purge_from_cdn($path, $email=null)
287287

288288
# (CDN) POST /v1/Account/Container
289289
function update_cdn_container($container_name, $ttl=86400, $cdn_log_retention=False,
290-
$cdn_acl_user_agent="", $cdn_acl_referrer)
290+
$cdn_acl_user_agent="", $cdn_acl_referrer=null)
291291
{
292292
if ($container_name == "")
293293
throw new SyntaxException("Container name not set.");
@@ -329,7 +329,7 @@ function add_cdn_container($container_name, $ttl=86400)
329329

330330
if ($container_name != "0" and !isset($container_name))
331331
throw new SyntaxException("Container name not set.");
332-
332+
333333
$url_path = $this->_make_path("CDN", $container_name);
334334
$hdrs = array(
335335
CDN_ENABLED => "True",
@@ -357,7 +357,7 @@ function remove_cdn_container($container_name)
357357

358358
if ($container_name != "0" and !isset($container_name))
359359
throw new SyntaxException("Container name not set.");
360-
360+
361361
$url_path = $this->_make_path("CDN", $container_name);
362362
$hdrs = array(CDN_ENABLED => "False");
363363
$return_code = $this->_send_request("DEL_POST",$url_path,$hdrs,"POST");
@@ -385,7 +385,7 @@ function head_cdn_container($container_name)
385385

386386
if ($container_name != "0" and !isset($container_name))
387387
throw new SyntaxException("Container name not set.");
388-
388+
389389
$conn_type = "HEAD";
390390
$url_path = $this->_make_path("CDN", $container_name);
391391
$return_code = $this->_send_request($conn_type, $url_path, NULL, "GET", True);
@@ -598,7 +598,7 @@ function list_objects($cname,$limit=0,$marker=NULL,$prefix=NULL,$path=NULL)
598598
if (!empty($params)) {
599599
$url_path .= "?" . implode("&", $params);
600600
}
601-
601+
602602
$conn_type = "GET_CALL";
603603
$this->_write_callback_type = "TEXT_LIST";
604604
$return_code = $this->_send_request($conn_type,$url_path);
@@ -616,7 +616,7 @@ function list_objects($cname,$limit=0,$marker=NULL,$prefix=NULL,$path=NULL)
616616
return array($return_code,$this->error_str,array());
617617
}
618618
if ($return_code == 200) {
619-
$this->create_array();
619+
$this->create_array();
620620
return array($return_code,$this->response_reason, $this->_text_list);
621621
}
622622
$this->error_str = "Unexpected HTTP response code: $return_code";
@@ -652,7 +652,7 @@ function get_objects($cname,$limit=0,$marker=NULL,$prefix=NULL,$path=NULL)
652652
if (!empty($params)) {
653653
$url_path .= "?" . implode("&", $params);
654654
}
655-
655+
656656
$conn_type = "GET_CALL";
657657
$this->_write_callback_type = "OBJECT_STRING";
658658
$return_code = $this->_send_request($conn_type,$url_path);
@@ -687,12 +687,12 @@ function head_container($container_name)
687687
$this->error_str = "Container name not set.";
688688
return False;
689689
}
690-
690+
691691
if ($container_name != "0" and !isset($container_name)) {
692692
$this->error_str = "Container name not set.";
693693
return False;
694694
}
695-
695+
696696
$conn_type = "HEAD";
697697

698698
$url_path = $this->_make_path("STORAGE", $container_name);
@@ -920,12 +920,12 @@ function delete_object($container_name, $object_name)
920920
$this->error_str = "Container name not set.";
921921
return 0;
922922
}
923-
923+
924924
if ($container_name != "0" and !isset($container_name)) {
925925
$this->error_str = "Container name not set.";
926926
return 0;
927927
}
928-
928+
929929
if (!$object_name) {
930930
$this->error_str = "Object name not set.";
931931
return 0;
@@ -1050,7 +1050,7 @@ private function _header_cb($ch, $header)
10501050
trim(substr($header, strlen(CDN_ACL_REFERRER)+1));
10511051
return strlen($header);
10521052
}
1053-
1053+
10541054
if (stripos($header, ACCOUNT_CONTAINER_COUNT) === 0) {
10551055
$this->_account_container_count = (float) trim(substr($header,
10561056
strlen(ACCOUNT_CONTAINER_COUNT)+1))+0;
@@ -1328,7 +1328,7 @@ private function _send_request($conn_type, $url_path, $hdrs=NULL, $method="GET",
13281328
throw new ConnectionNotOpenException (
13291329
"Connection is not open."
13301330
);
1331-
1331+
13321332
switch ($method) {
13331333
case "DELETE":
13341334
curl_setopt($this->connections[$conn_type],
@@ -1339,7 +1339,7 @@ private function _send_request($conn_type, $url_path, $hdrs=NULL, $method="GET",
13391339
CURLOPT_CUSTOMREQUEST, "POST");
13401340
default:
13411341
break;
1342-
}
1342+
}
13431343

13441344
curl_setopt($this->connections[$conn_type],
13451345
CURLOPT_HTTPHEADER, $headers);
@@ -1355,7 +1355,7 @@ private function _send_request($conn_type, $url_path, $hdrs=NULL, $method="GET",
13551355
}
13561356
return curl_getinfo($this->connections[$conn_type], CURLINFO_HTTP_CODE);
13571357
}
1358-
1358+
13591359
function close()
13601360
{
13611361
foreach ($this->connections as $cnx) {

0 commit comments

Comments
 (0)