Upgrader: Create Directories with a minimum of 0755 and files with a minimum of 0644 when upgrading, which matches pre-3.7 behaviour. Fixes #20069
Built from https://develop.svn.wordpress.org/trunk@25739 git-svn-id: http://core.svn.wordpress.org/trunk@25652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
29a60aa56c
commit
543d84a379
|
@ -836,9 +836,9 @@ function WP_Filesystem( $args = false, $context = false ) {
|
|||
|
||||
// Set the permission constants if not already set.
|
||||
if ( ! defined('FS_CHMOD_DIR') )
|
||||
define('FS_CHMOD_DIR', ( fileperms( ABSPATH ) & 0777 | 0750 ) );
|
||||
define('FS_CHMOD_DIR', ( fileperms( ABSPATH ) & 0777 | 0755 ) );
|
||||
if ( ! defined('FS_CHMOD_FILE') )
|
||||
define('FS_CHMOD_FILE', ( fileperms( ABSPATH . 'index.php' ) & 0777 | 0640 ) );
|
||||
define('FS_CHMOD_FILE', ( fileperms( ABSPATH . 'index.php' ) & 0777 | 0644 ) );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue