Ticket #13683: stats.diff
File stats.diff, 674 bytes (added by , 14 years ago) |
---|
-
wp-includes/functions.php
1285 1285 1286 1286 fwrite( $out_fp, $response['body']); 1287 1287 fclose($out_fp); 1288 clearstatcache(); 1288 1289 1289 1290 return $headers; 1290 1291 } … … 2304 2305 2305 2306 @fwrite( $ifp, $bits ); 2306 2307 fclose( $ifp ); 2308 clearstatcache(); 2309 2307 2310 // Set correct file permissions 2308 2311 $stat = @ stat( dirname( $new_file ) ); 2309 2312 $perms = $stat['mode'] & 0007777; 2310 2313 $perms = $perms & 0000666; 2311 2314 @ chmod( $new_file, $perms ); 2315 clearstatcache(); 2312 2316 2313 2317 // Compute the URL 2314 2318 $url = $upload['url'] . "/$filename";