]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/class-http.php
WordPress 3.5.1-scripts
[autoinstalls/wordpress.git] / wp-includes / class-http.php
index b50909fd9f991a13267ea7c6d6be51ea6baee1a9..3f396a647380df98fbe3bdff2faeef438cf01d6d 100644 (file)
@@ -141,7 +141,7 @@ class WP_Http {
                // Force some settings if we are streaming to a file and check for existence and perms of destination directory
                if ( $r['stream'] ) {
                        $r['blocking'] = true;
-                       if ( ! is_writable( dirname( $r['filename'] ) ) )
+                       if ( ! call_user_func( 'WIN' === strtoupper( substr( PHP_OS, 0, 3 ) ) ? 'win_is_writable' : 'is_writable', dirname( $r['filename'] ) ) )
                                return new WP_Error( 'http_request_failed', __( 'Destination directory for file streaming does not exist or is not writable.' ) );
                }