From 01807664de62579c1f4845295c8feea167ea8172 Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Thu, 17 Oct 2024 21:54:52 +0200 Subject: [PATCH] Restore FICTIONEER_ENABLE_MENU_TRANSIENTS For legacy reasons, such as child themes. --- functions.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/functions.php b/functions.php index 65387089..fc08339e 100644 --- a/functions.php +++ b/functions.php @@ -431,6 +431,14 @@ if ( ! defined( 'FICTIONEER_SHOW_LATEST_CHAPTERS_ON_STORY_CARDS' ) ) { ); } +// Boolean: Legacy check for nav menu Transients (used by some child themes) +if ( ! defined( 'FICTIONEER_ENABLE_MENU_TRANSIENTS' ) ) { + define( + 'FICTIONEER_ENABLE_MENU_TRANSIENTS', + ! is_customize_preview() && ! get_option( 'fictioneer_disable_menu_transients' ) + ); +} + // ============================================================================= // GLOBAL // =============================================================================