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
git-svn-id: https://develop.svn.wordpress.org/trunk@25739 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
04357e30c8
commit
28736216f3
@ -836,9 +836,9 @@ function WP_Filesystem( $args = false, $context = false ) {
|
|||||||
|
|
||||||
// Set the permission constants if not already set.
|
// Set the permission constants if not already set.
|
||||||
if ( ! defined('FS_CHMOD_DIR') )
|
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') )
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user