Restore FICTIONEER_ENABLE_MENU_TRANSIENTS

For legacy reasons, such as child themes.
This commit is contained in:
Tetrakern 2024-10-17 21:54:52 +02:00
parent 0eed16fff3
commit 01807664de

View File

@ -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
// =============================================================================