| 1 | diff --git a/wp-admin/includes/class-wp-filesystem-ssh2.php b/wp-admin/includes/class-wp-filesystem-ssh2.php
|
|---|
| 2 | index e446656..767d15e 100644
|
|---|
| 3 | --- a/wp-admin/includes/class-wp-filesystem-ssh2.php
|
|---|
| 4 | +++ b/wp-admin/includes/class-wp-filesystem-ssh2.php
|
|---|
| 5 | @@ -85,16 +85,17 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
|---|
| 6 |
|
|---|
| 7 | if ( !empty($opt['username']) )
|
|---|
| 8 | $this->options['username'] = $opt['username'];
|
|---|
| 9 |
|
|---|
| 10 | if ( empty ($opt['password']) ) {
|
|---|
| 11 | // Password can be blank if we are using keys.
|
|---|
| 12 | if ( !$this->keys )
|
|---|
| 13 | $this->errors->add('empty_password', __('SSH2 password is required'));
|
|---|
| 14 | + $this->options['password'] = $opt['password'];
|
|---|
| 15 | } else {
|
|---|
| 16 | $this->options['password'] = $opt['password'];
|
|---|
| 17 | }
|
|---|
| 18 | }
|
|---|
| 19 |
|
|---|
| 20 | /**
|
|---|
| 21 | *
|
|---|
| 22 | * @return bool
|
|---|