WordPress.org

Make WordPress Core

Changeset 16621


Ignore:
Timestamp:
11/30/10 19:11:09 (3 years ago)
Author:
nbachiyski
Message:

COonvert spaces to tabs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/misc.php

    r16570 r16621  
    578578     */ 
    579579 
    580     if ( $path[strlen($path)-1] == '/' ) // recursively return a temporary file path 
    581         return win_is_writable($path . uniqid(mt_rand()) . '.tmp'); 
    582     else if ( is_dir($path) ) 
    583         return win_is_writable($path . '/' . uniqid(mt_rand()) . '.tmp'); 
    584     // check tmp file for read/write capabilities 
    585     $rm = file_exists($path); 
    586     $f = @fopen($path, 'a'); 
    587     if ($f===false) 
    588         return false; 
    589     fclose($f); 
    590     if ( ! $rm ) 
    591         unlink($path); 
    592     return true; 
     580    if ( $path[strlen($path)-1] == '/' ) // recursively return a temporary file path 
     581        return win_is_writable($path . uniqid(mt_rand()) . '.tmp'); 
     582    else if ( is_dir($path) ) 
     583        return win_is_writable($path . '/' . uniqid(mt_rand()) . '.tmp'); 
     584    // check tmp file for read/write capabilities 
     585    $rm = file_exists($path); 
     586    $f = @fopen($path, 'a'); 
     587    if ($f===false) 
     588        return false; 
     589    fclose($f); 
     590    if ( ! $rm ) 
     591        unlink($path); 
     592    return true; 
    593593} 
    594594 
Note: See TracChangeset for help on using the changeset viewer.