Changeset 3123

Show
Ignore:
Timestamp:
11/17/05 02:24:52 (3 years ago)
Author:
ryan
Message:

Check if writable before checking if dir to avoid permission denied problems.

Files:

Legend:

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

    r3113 r3123  
    363363            $this->cache_dir = ABSPATH.'wp-content/cache/'; 
    364364 
    365         if (is_dir($this->cache_dir)) { 
    366             if (is_writable($this->cache_dir)) 
     365        if (is_writable($this->cache_dir) && is_dir($this->cache_dir)) { 
    367366                $this->cache_enabled = true; 
    368367        } else