why make wp-content writeable?

Why make the entire wp-content folder writeable - just for two files - that don't even need to be in that folder?
Instead, create the "/wp-content/advanced-cache.php" file with the following code:
This then allows you to offset the configuration to the writable (cache) folder, without putting the entire wp-content folder at significantly increased risk.
Then everywhere you're checking if that file (or the WP_CONTENT_DIR) is writable, check the cache folder and for the advanced-cache.php file within it. This also applies for the qcache-salt-ok.php and I believe that only the following files required changes:
quick-cache/includes/classes/advanced-cache.inc.php
quick-cache/includes/classes/auto-cache.inc.php
quick-cache/includes/classes/menu-pages.inc.php
Instead, create the "/wp-content/advanced-cache.php" file with the following code:
- Code: Select all
<?
if (file_exists (WP_CONTENT_DIR . "/cache/advanced-cache.php")) include_once(WP_CONTENT_DIR . "/cache/advanced-cache.php");
?>
This then allows you to offset the configuration to the writable (cache) folder, without putting the entire wp-content folder at significantly increased risk.
Then everywhere you're checking if that file (or the WP_CONTENT_DIR) is writable, check the cache folder and for the advanced-cache.php file within it. This also applies for the qcache-salt-ok.php and I believe that only the following files required changes:
quick-cache/includes/classes/advanced-cache.inc.php
quick-cache/includes/classes/auto-cache.inc.php
quick-cache/includes/classes/menu-pages.inc.php