From a36cbecc7a64b1cfc4f704fff356e36089e29da9 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Wed, 9 Oct 2024 11:37:55 -0300 Subject: [PATCH] Escapes several URLs passed via add_query_args to taxonomy term single template. --- src/classes/theme-helper/template-tags.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/classes/theme-helper/template-tags.php b/src/classes/theme-helper/template-tags.php index 9ef65bb8c..9fb653964 100644 --- a/src/classes/theme-helper/template-tags.php +++ b/src/classes/theme-helper/template-tags.php @@ -1385,9 +1385,9 @@ function tainacan_get_single_taxonomy_content($post, $args = []) { $grandparent = get_term($tainacan_parent_term->get_parent()); $tainacan_grandparent_term = new Entities\Term( $grandparent ); - $content .= '' . __('Return to the list of terms children of ', 'tainacan') . '' . $tainacan_grandparent_term->get_name() . '.'; + $content .= '' . __('Return to the list of terms children of ', 'tainacan') . '' . $tainacan_grandparent_term->get_name() . '.'; } else - $content .= '' . __('Return to the terms list.', 'tainacan') . ''; + $content .= '' . __('Return to the terms list.', 'tainacan') . ''; $content .= '

'; } @@ -1458,7 +1458,7 @@ function tainacan_get_single_taxonomy_content($post, $args = []) { $total_children = is_array($total_children) && count($total_children) ? count($total_children) : 0; if ( $total_children ) { - echo $args['before_term_children_link'] . ''; + echo $args['before_term_children_link'] . ''; if ( !$args['hide_term_children_count'] && $args['term_children_count_position'] === 'before' ) echo '' . $total_children . ' '; @@ -1548,10 +1548,10 @@ function tainacan_get_taxonomies_orderby($args = []) { id="tainacan-taxonomy-order-select" name="order" onchange="location = this.value;"> - - @@ -1567,10 +1567,10 @@ function tainacan_get_taxonomies_orderby($args = []) { id="tainacan-taxonomy-orderby-select" name="orderby" onchange="location = this.value;"> - -