Restore FICTIONEER_ENABLE_MENU_TRANSIENTS
For legacy reasons, such as child themes.
This commit is contained in:
parent
0eed16fff3
commit
01807664de
@ -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
|
||||
// =============================================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user