Filesystem API: Expicitly set directory permissions in WP_Filesystem_SSH2::mkdir()
.
This ensures the permissions are correct after a directory is created with `ssh2_sftp_mkdir()`, which appears to be affected by system `umask` settings. Props bbrdaric. Fixes #49218. git-svn-id: https://develop.svn.wordpress.org/trunk@48090 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d4f4f4232c
commit
19a99901e1
@ -695,6 +695,9 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Set directory permissions.
|
||||
ssh2_sftp_chmod( $this->sftp_link, $path, $chmod );
|
||||
|
||||
if ( $chown ) {
|
||||
$this->chown( $path, $chown );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user