From 164ff4392a8683779047eb14620c83c3d505ecc3 Mon Sep 17 00:00:00 2001 From: Chris Kindred Date: Mon, 25 Sep 2023 11:10:33 -0400 Subject: [PATCH] Early exit if no terms match --- wp-content/themes/core/blocks/tribe/terms/render.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wp-content/themes/core/blocks/tribe/terms/render.php b/wp-content/themes/core/blocks/tribe/terms/render.php index 3ed8bed9..ad3e85dc 100644 --- a/wp-content/themes/core/blocks/tribe/terms/render.php +++ b/wp-content/themes/core/blocks/tribe/terms/render.php @@ -7,6 +7,13 @@ echo '
'; +if ( 0 === count( $terms ) ) { + echo ''; + echo '
'; + + return; +} + if ( count( $terms ) > 1 ) { echo '