#
#-----[ OPEN ]------------------------------------------
#
wp-config.php
#
#-----[ FIND ]------------------------------------------
#
define('WPLANG', '');
#
#-----[ AFTER, ADD ]------------------------------------
#
define('FS_METHOD', 'ssh2');
#
#-----[ OPEN ]------------------------------------------
#
wp-admin/includes/file.php
#
#-----[ FIND ]------------------------------------------
#
if ( ! $method && isset($args['connection_type']) && 'ssh' == $args['connection_type'] && extension_loaded('ssh2') && function_exists('stream_get_contents') ) $method = 'ssh2';
#
#-----[ REPLACE WITH ]----------------------------------
#
if ( ! $method && isset($args['connection_type']) && 'ssh' == $args['connection_type'] && function_exists('stream_get_contents') ) $method = 'ssh2';
#
#-----[ FIND ]------------------------------------------
#
( 'ssh' == $credentials['connection_type'] && !empty($credentials['public_key']) && !empty($credentials['private_key']) )
#
#-----[ REPLACE WITH ]----------------------------------
#
( 'ssh' == $credentials['connection_type'] && !empty($credentials['private_key']) )
#
#-----[ FIND ]------------------------------------------
#
if ( extension_loaded('ssh2') && function_exists('stream_get_contents') )
#
#-----[ REPLACE WITH ]----------------------------------
#
if ( function_exists('stream_get_contents') )
#
#-----[ FIND ]------------------------------------------
#
<th scope="row"><?php _e('Authentication Keys') ?>
<div class="key-labels textright">
<label for="public_key"><?php _e('Public Key:') ?></label ><br />
<label for="private_key"><?php _e('Private Key:') ?></label>
</div></th>
<td><br /><input name="public_key" type="text" id="public_key" value="<?php echo esc_attr($public_key) ?>"<?php disabled( defined('FTP_PUBKEY') ); ?> size="40" /><br /><input name="private_key" type="text" id="private_key" value="<?php echo esc_attr($private_key) ?>"<?php disabled( defined('FTP_PRIKEY') ); ?> size="40" />
<div><?php _e('Enter the location on the server where the keys are located. If a passphrase is needed, enter that in the password field above.') ?></div></td>
</tr>
#
#-----[ REPLACE WITH ]----------------------------------
#
<th scope="row"><?php _e('Authentication Keys') ?>
<div class="key-labels textright">
<label for="private_key"><?php _e('Private Key:') ?></label>
</div></th>
<td><br /><textarea name="private_key" id="private_key" value="<?php echo esc_attr($private_key) ?>"<?php disabled( defined('FTP_PRIKEY') ); ?> />
<div><?php _e('If a passphrase is needed, enter that in the password field above.') ?></div></td>
</tr>