Jake Vanderwerf
2026-01-25 b38f03c0e7218762d90fa5092696b127f24f36db
inc/forms/TaxonomySelector.php
@@ -64,14 +64,14 @@
    */
   public static function getTermPath(WP_Term $term, bool $returnArray = false): string|array {
      if (!is_taxonomy_hierarchical($term->taxonomy)) {
         return $term->name;
         return html_entity_decode($term->name);
      }
      $path = [];
      $currentTerm = $term;
      while ($currentTerm) {
         array_unshift($path, $currentTerm->name);
         array_unshift($path, html_entity_decode($currentTerm->name));
         if ($currentTerm->parent) {
            $currentTerm = get_term($currentTerm->parent);
@@ -342,7 +342,7 @@
         <span><?= esc_html($termPath) ?></span>
         <button type="button"
               class="remove-term row"
               aria-label="Remove <?= esc_attr($term->name) ?>">
               aria-label="Remove <?= html_entity_decode($term->name) ?>">
            <?= jvbIcon('x') ?>
         </button>
      </div>