From ba9b60db7a62061ba69a2b257f397b23c6f06f77 Mon Sep 17 00:00:00 2001
From: David Rothstein <drothstein@gmail.com>
Date: Sun, 10 Mar 2013 16:11:40 -0400
Subject: [PATCH] Issue #1751054 by borisbaldinger, Berdir, vomiand: Fixed
 serious documentation problem with the $name variable in
 taxonomy-term.tpl.php (incorrectly documented as being sanitized when in fact
 it is not).

---
 CHANGELOG.txt                          | 3 +++
 modules/taxonomy/taxonomy-term.tpl.php | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 2a703b2749ad..19561d541faf 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,6 +1,9 @@
 
 Drupal 7.22, xxxx-xx-xx (development version)
 -----------------------
+- Fixed a serious documentation bug: The $name variable in the
+  taxonomy-term.tpl.php theme template was incorrectly documented as being
+  sanitized when in fact it is not.
 - Fixed a bug which prevented Drupal 6 to Drupal 7 upgrades on sites which had
   duplicate permission names in the User module's database tables.
 - Added an empty "datatype" attribute to taxonomy term and username links to
diff --git a/modules/taxonomy/taxonomy-term.tpl.php b/modules/taxonomy/taxonomy-term.tpl.php
index d410d1ef3bef..a225c3a57712 100644
--- a/modules/taxonomy/taxonomy-term.tpl.php
+++ b/modules/taxonomy/taxonomy-term.tpl.php
@@ -5,7 +5,8 @@
  * Default theme implementation to display a term.
  *
  * Available variables:
- * - $name: the (sanitized) name of the term.
+ * - $name: (deprecated) The unsanitized name of the term. Use $term_name
+ *   instead.
  * - $content: An array of items for the content of the term (fields and
  *   description). Use render($content) to print them all, or print a subset
  *   such as render($content['field_example']). Use
-- 
GitLab