Changeset 3388 for trunk/wp-includes/cache.php
- Timestamp:
- 01/02/2006 02:50:59 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/cache.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/cache.php
r3386 r3388 206 206 207 207 if (!file_exists($this->cache_dir.$make_dir."index.php")) { 208 $file_perms = $perms & 0000666; 208 209 @ touch($this->cache_dir.$make_dir."index.php"); 210 @ chmod($this->cache_dir.$make_dir."index.php", $file_perms); 209 211 } 210 212 } … … 269 271 // Give the new dirs the same perms as wp-content. 270 272 $stat = stat(ABSPATH.'wp-content'); 271 $dir_perms = $stat['mode'] & 0000777; // Get the permission bits. 273 $dir_perms = $stat['mode'] & 0007777; // Get the permission bits. 274 $file_perms = $dir_perms & 0000666; // Remove execute bits for files. 272 275 273 276 // Make the base cache dir. … … 280 283 if (!file_exists($this->cache_dir."index.php")) { 281 284 @ touch($this->cache_dir."index.php"); 285 @ chmod($this->cache_dir."index.php", $file_perms); 282 286 } 283 287 … … 315 319 } 316 320 } 321 @ chmod($cache_file, $file_perms); 317 322 } 318 323 }
Note: See TracChangeset
for help on using the changeset viewer.