diff -r be944660c56a -r 3d72ae0968f4 wp/wp-admin/includes/class-wp-filesystem-ssh2.php --- a/wp/wp-admin/includes/class-wp-filesystem-ssh2.php Wed Sep 21 18:19:35 2022 +0200 +++ b/wp/wp-admin/includes/class-wp-filesystem-ssh2.php Tue Sep 27 16:37:53 2022 +0200 @@ -26,7 +26,7 @@ * Restart Apache! * Check phpinfo() streams to confirm that: ssh2.shell, ssh2.exec, ssh2.tunnel, ssh2.scp, ssh2.sftp exist. * - * Note: As of WordPress 2.8, this utilises the PHP5+ function `stream_get_contents()`. + * Note: As of WordPress 2.8, this utilizes the PHP5+ function `stream_get_contents()`. * * @since 2.7.0 * @@ -88,7 +88,7 @@ $this->options['public_key'] = $opt['public_key']; $this->options['private_key'] = $opt['private_key']; - $this->options['hostkey'] = array( 'hostkey' => 'ssh-rsa' ); + $this->options['hostkey'] = array( 'hostkey' => 'ssh-rsa,ssh-ed25519' ); $this->keys = true; } elseif ( empty( $opt['username'] ) ) { @@ -738,14 +738,14 @@ * * @type string $name Name of the file or directory. * @type string $perms *nix representation of permissions. - * @type int $permsn Octal representation of permissions. + * @type string $permsn Octal representation of permissions. * @type string $owner Owner name or ID. * @type int $size Size of file in bytes. * @type int $lastmodunix Last modified unix timestamp. * @type mixed $lastmod Last modified month (3 letter) and day (without leading 0). * @type int $time Last modified time. * @type string $type Type of resource. 'f' for file, 'd' for directory. - * @type mixed $files If a directory and $recursive is true, contains another array of files. + * @type mixed $files If a directory and `$recursive` is true, contains another array of files. * } */ public function dirlist( $path, $include_hidden = true, $recursive = false ) {