Make WordPress Core

Ticket #13683: stats.diff

File stats.diff, 674 bytes (added by momo360modena, 14 years ago)
  • wp-includes/functions.php

     
    12851285
    12861286        fwrite( $out_fp,  $response['body']);
    12871287        fclose($out_fp);
     1288        clearstatcache();
    12881289
    12891290        return $headers;
    12901291}
     
    23042305
    23052306        @fwrite( $ifp, $bits );
    23062307        fclose( $ifp );
     2308        clearstatcache();
     2309       
    23072310        // Set correct file permissions
    23082311        $stat = @ stat( dirname( $new_file ) );
    23092312        $perms = $stat['mode'] & 0007777;
    23102313        $perms = $perms & 0000666;
    23112314        @ chmod( $new_file, $perms );
     2315        clearstatcache();
    23122316
    23132317        // Compute the URL
    23142318        $url = $upload['url'] . "/$filename";