mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-12 13:44:21 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@48090 git-svn-id: http://core.svn.wordpress.org/trunk@47857 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
527696af3b
commit
0050998801
@ -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 );
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.5-alpha-48089';
|
||||
$wp_version = '5.5-alpha-48090';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user