Make WordPress Core

Changeset 23250


Ignore:
Timestamp:
01/03/2013 06:24:01 AM (12 years ago)
Author:
nacin
Message:

HTTP API: Use win_is_writable() on Windows when checking the directory to which we are streaming.

props dd32.
see #22900.
for the 3.5 branch only.

File:
1 edited

Legend:

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

    r22118 r23250  
    142142        if ( $r['stream'] ) {
    143143            $r['blocking'] = true;
    144             if ( ! is_writable( dirname( $r['filename'] ) ) )
     144            if ( ! call_user_func( 'WIN' === strtoupper( substr( PHP_OS, 0, 3 ) ) ? 'win_is_writable' : '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.