Check if writable before checking if dir to avoid permission denied problems.
git-svn-id: http://svn.automattic.com/wordpress/trunk@3123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
60e7c34c12
commit
a6472cdafa
|
@ -362,8 +362,7 @@ class WP_Object_Cache {
|
|||
else
|
||||
$this->cache_dir = ABSPATH.'wp-content/cache/';
|
||||
|
||||
if (is_dir($this->cache_dir)) {
|
||||
if (is_writable($this->cache_dir))
|
||||
if (is_writable($this->cache_dir) && is_dir($this->cache_dir)) {
|
||||
$this->cache_enabled = true;
|
||||
} else
|
||||
if (is_writable(ABSPATH.'wp-content')) {
|
||||
|
|
Loading…
Reference in New Issue