diff --git a/lib/Doctrine/MetadataCache.php b/lib/Doctrine/MetadataCache.php index 8b22ccae75..84bddd62f0 100644 --- a/lib/Doctrine/MetadataCache.php +++ b/lib/Doctrine/MetadataCache.php @@ -22,7 +22,9 @@ class MetadataCache extends CacheProvider { function __construct($dir) { $this->is_dev_mode = defined('WP_DEBUG') && WP_DEBUG && class_exists(SimpleAnnotationReader::class); $this->directory = rtrim($dir, '/\\'); - @mkdir($this->directory); + if (!file_exists($this->directory)) { + mkdir($this->directory); + } } protected function doFetch($id) {