From 8cae10339b471f6f350270ee50dcf9ca44254cc4 Mon Sep 17 00:00:00 2001 From: Rodrigo de Oliveira Date: Tue, 20 Apr 2021 16:15:15 -0300 Subject: [PATCH] Warns user whether Tainacan plugin is not activated --- src/functions/customizer.php | 4 ++++ 1 file changed, 4 insertions(+) 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)