Make WordPress Core


Ignore:
Timestamp:
12/15/2014 02:07:35 PM (11 years ago)
Author:
dd32
Message:

Background Updates: Pass back whether Group Writable support is being leveraged for an update to the WordPress.org API.
See #30245

File:
1 edited

Legend:

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

    r30753 r30860  
    929929                // this means it's safe to modify & create new files via PHP.
    930930                $method = 'direct';
     931                $GLOBALS['_wp_filesystem_direct_method'] = 'file_owner';
    931932            } else if ( $allow_relaxed_file_ownership ) {
    932933                // The $context directory is writable, and $allow_relaxed_file_ownership is set, this means we can modify files
    933934                // safely in this directory. This mode doesn't create new files, only alter existing ones.
    934935                $method = 'direct';
     936                $GLOBALS['_wp_filesystem_direct_method'] = 'relaxed_ownership';
    935937            }
    936938
Note: See TracChangeset for help on using the changeset viewer.