mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 18:24:31 +00:00
Allow wp-content to exist outside of webroot. Props sambauers. see #6938
git-svn-id: https://develop.svn.wordpress.org/trunk@7999 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -651,11 +651,12 @@ function is_server_error ($sc) {
|
||||
}
|
||||
|
||||
class RSSCache {
|
||||
var $BASE_CACHE = 'wp-content/cache'; // where the cache files are stored
|
||||
var $BASE_CACHE; // where the cache files are stored
|
||||
var $MAX_AGE = 43200; // when are files stale, default twelve hours
|
||||
var $ERROR = ''; // accumulate error messages
|
||||
|
||||
function RSSCache ($base='', $age='') {
|
||||
$this->BASE_CACHE = WP_CONTENT_DIR . '/cache';
|
||||
if ( $base ) {
|
||||
$this->BASE_CACHE = $base;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user