Make WordPress Core


Ignore:
Timestamp:
01/03/2013 08:04:11 AM (13 years ago)
Author:
dd32
Message:

HTTP API: Introduce wp_is_writable() to wrap win_is_writable() and is_writable() to work around PHP Windows ACL issues. See #22900 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-http.php

    r23191 r23255  
    142142        if ( $r['stream'] ) {
    143143            $r['blocking'] = true;
    144             if ( ! is_writable( dirname( $r['filename'] ) ) )
     144            if ( ! wp_is_writable( dirname( $r['filename'] ) ) )
    145145                return new WP_Error( 'http_request_failed', __( 'Destination directory for file streaming does not exist or is not writable.' ) );
    146146        }
Note: See TracChangeset for help on using the changeset viewer.