diff --git a/wp-admin/includes/class-wp-filesystem-ssh2.php b/wp-admin/includes/class-wp-filesystem-ssh2.php index 2b3edf1adc..d68f1433d1 100644 --- a/wp-admin/includes/class-wp-filesystem-ssh2.php +++ b/wp-admin/includes/class-wp-filesystem-ssh2.php @@ -103,6 +103,8 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base { // Password can be blank if we are using keys. if ( ! $this->keys ) { $this->errors->add( 'empty_password', __( 'SSH2 password is required' ) ); + } else { + $this->options['password'] = null; } } else { $this->options['password'] = $opt['password']; diff --git a/wp-includes/version.php b/wp-includes/version.php index 818edeac23..0efbc4d14a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-beta2-56110'; +$wp_version = '6.3-beta2-56111'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.