diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php
index 9a310e97d6..bc40f3e62a 100644
--- a/src/wp-admin/includes/file.php
+++ b/src/wp-admin/includes/file.php
@@ -1084,11 +1084,13 @@ function request_filesystem_credentials($form_post, $type = '', $error = false,
update_option('ftp_credentials', $stored_credentials);
return $credentials;
}
- $hostname = '';
- $username = '';
- $connection_type = '';
- if ( !empty($credentials) )
- extract($credentials, EXTR_OVERWRITE);
+ $hostname = isset( $credentials['hostname'] ) ? $credentials['hostname'] : '';
+ $username = isset( $credentials['username'] ) ? $credentials['username'] : '';
+ $public_key = isset( $credentials['public_key'] ) ? $credentials['public_key'] : '';
+ $private_key = isset( $credentials['private_key'] ) ? $credentials['private_key'] : '';
+ $port = isset( $credentials['port'] ) ? $credentials['port'] : '';
+ $connection_type = isset( $credentials[''] ) ? $credentials[''] : '';
+
if ( $error ) {
$error_string = __('ERROR: There was an error connecting to the server, Please verify the settings are correct.');
if ( is_wp_error($error) )
@@ -1178,7 +1180,8 @@ jQuery(function($){
-