From 5652447de042c729a7841e7b9099ea6711cf6304 Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Wed, 28 Aug 2024 15:13:07 +0200 Subject: [PATCH] Add fictioneer_get_theme_cache_uri() --- INSTALLATION.md | 1 - functions.php | 5 ---- includes/functions/_setup-theme.php | 36 +++++++++++++++++++++++++---- 3 files changed, 32 insertions(+), 10 deletions(-) diff --git a/INSTALLATION.md b/INSTALLATION.md index 37ea6ebf..3aa94703 100644 --- a/INSTALLATION.md +++ b/INSTALLATION.md @@ -1568,7 +1568,6 @@ define( 'CONSTANT_NAME', value ); | FICTIONEER_TRUNCATION_ELLIPSIS | string | Appended to truncated strings. Default `…`. | FICTIONEER_AGE_CONFIRMATION_REDIRECT | string | Redirect URL if a visitor reject the age confirmation. Default `https://search.brave.com/`. | FICTIONEER_CACHE_DIR | string | Server path to the theme cache directory. -| FICTIONEER_CACHE_URL | string | URL to the theme cache directory. | FICTIONEER_COMMENTCODE_TTL | integer | How long guests can see their private/unapproved comments in _seconds_. Default `600`. | FICTIONEER_AJAX_TTL | integer | How long to cache certain AJAX requests locally in _milliseconds_. Default `60000`. | FICTIONEER_AJAX_LOGIN_TTL | integer | How long to cache AJAX authentications locally in _milliseconds_. Default `15000`. diff --git a/functions.php b/functions.php index dea4d1a5..7199e507 100644 --- a/functions.php +++ b/functions.php @@ -135,11 +135,6 @@ if ( ! defined( 'FICTIONEER_CACHE_DIR' ) ) { define( 'FICTIONEER_CACHE_DIR', WP_CONTENT_DIR . '/themes/fictioneer/cache' ); } -// String: Path to cache URL (without trailing slash) -if ( ! defined( 'FICTIONEER_CACHE_URL' ) ) { - define( 'FICTIONEER_CACHE_URL', WP_CONTENT_URL . '/themes/fictioneer/cache' ); -} - /* * Date Strings */ diff --git a/includes/functions/_setup-theme.php b/includes/functions/_setup-theme.php index 494df99a..71188a48 100644 --- a/includes/functions/_setup-theme.php +++ b/includes/functions/_setup-theme.php @@ -1,5 +1,27 @@ ?> >