WordPress.org

Make WordPress Core

Changeset 25739


Ignore:
Timestamp:
10/09/2013 04:46:31 PM (6 years ago)
Author:
dd32
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/file.php

    r25541 r25739  
    837837    // Set the permission constants if not already set.
    838838    if ( ! defined('FS_CHMOD_DIR') )
    839         define('FS_CHMOD_DIR', ( fileperms( ABSPATH ) & 0777 | 0750 ) );
     839        define('FS_CHMOD_DIR', ( fileperms( ABSPATH ) & 0777 | 0755 ) );
    840840    if ( ! defined('FS_CHMOD_FILE') )
    841         define('FS_CHMOD_FILE', ( fileperms( ABSPATH . 'index.php' ) & 0777 | 0640 ) );
     841        define('FS_CHMOD_FILE', ( fileperms( ABSPATH . 'index.php' ) & 0777 | 0644 ) );
    842842
    843843    return true;
Note: See TracChangeset for help on using the changeset viewer.