diff --git a/src/functions/customizer.php b/src/functions/customizer.php index 738e4ab..d785620 100644 --- a/src/functions/customizer.php +++ b/src/functions/customizer.php @@ -2435,6 +2435,10 @@ add_action( 'wp_head', 'tainacan_single_item_metadata_columns_count_output'); * @see wp_add_inline_style() */ function tainacan_items_page_filters_fixed_on_scroll_output() { + if (!defined('TAINACAN_VERSION')) { + _e('Tainacan plugin not activated!', 'tainacan-interface'); + return; + } $should_use_fixed_filters_logic = (version_compare(TAINACAN_VERSION, '0.17RC') >= 0) && get_theme_mod( 'tainacan_items_page_filters_fixed_on_scroll', false ); if (!$should_use_fixed_filters_logic)