Ticket #2190: dir.diff
| File dir.diff, 0.7 kB (added by ryan, 3 years ago) |
|---|
-
wp-includes/cache.php
old new 310 310 $dir_perms = $stat['mode'] & 0007777; // Get the permission bits. 311 311 $file_perms = $dir_perms & 0000666; // Remove execute bits for files. 312 312 313 $old_umask = umask(0); 314 313 315 // Make the base cache dir. 314 316 if (!file_exists($this->cache_dir)) { 315 if (! @ mkdir($this->cache_dir ))317 if (! @ mkdir($this->cache_dir, $dir_perms)) 316 318 return false; 317 319 @ chmod($this->cache_dir, $dir_perms); 318 320 } … … 362 364 363 365 $this->dirty_objects = array(); 364 366 367 umask($old_umask); 368 365 369 $this->release_lock(); 366 370 367 371 if ( $errors )
