Edit File by line
/home/barbar84/www/wp-conte.../plugins/updraftp.../methods
File: sftp.php
<?php
[0] Fix | Delete
[1] Fix | Delete
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed.');
[2] Fix | Delete
[3] Fix | Delete
if (class_exists('UpdraftPlus_Addons_RemoteStorage_sftp')) {
[4] Fix | Delete
[5] Fix | Delete
// Migrate options to standard-style - April 2017. This then enables them to get picked up by the multi-options settings translation code
[6] Fix | Delete
if (!is_array(UpdraftPlus_Options::get_updraft_option('updraft_sftp')) && '' != UpdraftPlus_Options::get_updraft_option('updraft_sftp_settings', '')) {
[7] Fix | Delete
$opts = UpdraftPlus_Options::get_updraft_option('updraft_sftp_settings');
[8] Fix | Delete
UpdraftPlus_Options::update_updraft_option('updraft_sftp', $opts);
[9] Fix | Delete
UpdraftPlus_Options::delete_updraft_option('updraft_sftp_settings');
[10] Fix | Delete
}
[11] Fix | Delete
[12] Fix | Delete
class UpdraftPlus_BackupModule_sftp extends UpdraftPlus_Addons_RemoteStorage_sftp {
[13] Fix | Delete
public function __construct() {
[14] Fix | Delete
parent::__construct('sftp', 'SFTP/SCP');
[15] Fix | Delete
}
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
} else {
[19] Fix | Delete
[20] Fix | Delete
include_once(UPDRAFTPLUS_DIR.'/methods/addon-not-yet-present.php');
[21] Fix | Delete
[22] Fix | Delete
/**
[23] Fix | Delete
* N.B. UpdraftPlus_BackupModule_AddonNotYetPresent extends UpdraftPlus_BackupModule
[24] Fix | Delete
*/
[25] Fix | Delete
class UpdraftPlus_BackupModule_sftp extends UpdraftPlus_BackupModule_AddonNotYetPresent {
[26] Fix | Delete
public function __construct() {
[27] Fix | Delete
parent::__construct('sftp', 'SFTP/SCP');
[28] Fix | Delete
}
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function