Make WordPress Core


Ignore:
Timestamp:
02/12/2006 07:53:23 AM (19 years ago)
Author:
ryan
Message:

Death to trailing tabs. Props Mark J. fixes #2405

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/cache.php

    r3504 r3517  
    104104        if ( ! $this->acquire_lock() )
    105105            return false;
    106        
     106
    107107        $this->rm_cache_dir();
    108108        $this->cache = array ();
    109109        $this->dirty_objects = array ();
    110110        $this->non_existant_objects = array ();
    111        
     111
    112112        $this->release_lock();
    113113
     
    249249                if ($file == '.' or $file == '..')
    250250                    continue;
    251                    
     251
    252252                if (@ is_dir($dir . DIRECTORY_SEPARATOR . $file))
    253253                    $stack[] = $dir . DIRECTORY_SEPARATOR . $file;
     
    355355                        @ unlink($temp_file);
    356356                    else
    357                         $errors++; 
     357                        $errors++;
    358358                }
    359359                @ chmod($cache_file, $file_perms);
     
    364364
    365365        $this->release_lock();
    366        
     366
    367367        if ( $errors )
    368368            return false;
Note: See TracChangeset for help on using the changeset viewer.