commit 5fd001c2c2b96d5c3d677ae8c4d49d4d8ed73b5e Author: Joel Pittet Date: Mon Apr 15 21:53:19 2013 -0700 missing {{}} around item.text and wrong attributes applied to span diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 245cae3..a2dfc4b 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1823,6 +1823,9 @@ function template_preprocess_links(&$variables) { // Handle text. $text = (!empty($link['html']) ? $link['title'] : check_plain($link['title'])); $variables['links'][$key]['text'] = $text; + if (isset($link['attributes'])) { + $variables['links'][$key]['text_attributes'] = new Attribute($link['attributes']); + } // Handle list item attributes. $variables['links'][$key]['attributes'] = new Attribute(array('class' => $class)); diff --git a/core/modules/system/templates/links.html.twig b/core/modules/system/templates/links.html.twig index 30f87fe..472fb82 100644 --- a/core/modules/system/templates/links.html.twig +++ b/core/modules/system/templates/links.html.twig @@ -58,10 +58,10 @@ {% if item.link %} {{ item.link }} - {% elseif item.attributes %} - {{ item.text }} + {% elseif item.text_attributes %} + {{ item.text }} {% else %} - item.text + {{ item.text }} {% endif %} {% endfor %}