From ae968ab9a21509f167e46153ea01f13c013f72f0 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Mon, 29 May 2023 18:28:01 -0300 Subject: [PATCH] Adds safe check for constant before defining it. --- src/functions.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/functions.php b/src/functions.php index bf7d1ef..77ba43a 100644 --- a/src/functions.php +++ b/src/functions.php @@ -4,8 +4,11 @@ const TAINACAN_INTERFACE_VERSION = '2.6'; /* Disables Tainacan Theme Helper the_content filter, which is used to build a custom item and taxonomy (terms list) template. */ -define('TAINACAN_DISABLE_ITEM_THE_CONTENT_FILTER', true); -define('TAINACAN_DISABLE_TAXONOMY_THE_CONTENT_FILTER', true); +if ( !defined('TAINACAN_DISABLE_ITEM_THE_CONTENT_FILTER') ) + define('TAINACAN_DISABLE_ITEM_THE_CONTENT_FILTER', true); + +if ( !defined('TAINACAN_DISABLE_TAXONOMY_THE_CONTENT_FILTER') ) + define('TAINACAN_DISABLE_TAXONOMY_THE_CONTENT_FILTER', true); /** * Setup Theme