Make WordPress Core

Changeset 3402


Ignore:
Timestamp:
01/05/2006 04:50:58 AM (18 years ago)
Author:
ryan
Message:

Don't remove top level cache dir when flushing.

File:
1 edited

Legend:

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

    r3400 r3402  
    218218        $dir = $this->cache_dir;
    219219        $dir = rtrim($dir, DIRECTORY_SEPARATOR);
     220        $top_dir = $dir;
    220221        $stack = array($dir);
    221222
     
    239240
    240241            if (end($stack) == $dir) {
    241                 @ rmdir($dir);
     242                if ( $dir != $top_dir)
     243                    @ rmdir($dir);
    242244                array_pop($stack);
    243245            }
Note: See TracChangeset for help on using the changeset viewer.