Don't set ftp_credentials option when installling. see #29635.
Built from https://develop.svn.wordpress.org/trunk@29749 git-svn-id: http://core.svn.wordpress.org/trunk@29521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0a848a6171
commit
1447092f6e
|
@ -1014,7 +1014,9 @@ function request_filesystem_credentials($form_post, $type = '', $error = false,
|
|||
$stored_credentials['hostname'] .= ':' . $stored_credentials['port'];
|
||||
|
||||
unset($stored_credentials['password'], $stored_credentials['port'], $stored_credentials['private_key'], $stored_credentials['public_key']);
|
||||
update_option('ftp_credentials', $stored_credentials);
|
||||
if ( ! defined( 'WP_INSTALLING' ) ) {
|
||||
update_option( 'ftp_credentials', $stored_credentials );
|
||||
}
|
||||
return $credentials;
|
||||
}
|
||||
$hostname = isset( $credentials['hostname'] ) ? $credentials['hostname'] : '';
|
||||
|
|
Loading…
Reference in New Issue