SSH2 Upgrade transport: Use ssh2_sftp_realpath() instead of shell commands to determine the current directory on the remote server. This should allow it to be used on chrooted SSH sessions.
See #32345 Built from https://develop.svn.wordpress.org/trunk@32726 git-svn-id: http://core.svn.wordpress.org/trunk@32696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cb39d03501
commit
c445d60a00
|
@ -193,7 +193,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
|||
* @return bool
|
||||
*/
|
||||
public function cwd() {
|
||||
$cwd = $this->run_command('pwd');
|
||||
$cwd = ssh2_sftp_realpath( $this->sftp_link, '.' );
|
||||
if ( $cwd ) {
|
||||
$cwd = trailingslashit( trim( $cwd ) );
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.3-alpha-32725';
|
||||
$wp_version = '4.3-alpha-32726';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue