mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Check if writable before checking if dir to avoid permission denied problems.
git-svn-id: https://develop.svn.wordpress.org/trunk@3123 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user