commit 374d1685139f26ded5fe9c904d3ea16f3efabe7f Author: David Valdez Date: Tue Apr 16 12:38:30 2013 -0500 1939008-44 diff --git a/core/includes/theme.inc b/core/includes/theme.inc index ac752e4..1e2bb58 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -2315,10 +2315,10 @@ function template_preprocess_table(&$variables) { // $headers here while we can in tablesort_header() above. $cell = tablesort_cell($cell, $headers, $ts, $i); - // Move cell properties that are not data or attributes into - // attributes. + // Move cell properties that are not data, attributes or header property + // into attributes. foreach ($cell as $key => $value) { - if ($key != 'data' && $key != 'attributes') { + if ($key != 'data' && $key != 'attributes' && $key != 'header') { $cell['attributes'][$key] = $value; } } diff --git a/core/modules/system/templates/table.html.twig b/core/modules/system/templates/table.html.twig index 9ee3bf5..bd53d04 100644 --- a/core/modules/system/templates/table.html.twig +++ b/core/modules/system/templates/table.html.twig @@ -85,9 +85,10 @@ {% for row in rows %} {% for i in row.cells|keys -%} - + {% set cell_tag = row.cells[i].header ? 'th' : 'td' %} + <{{ cell_tag }}{{ row.cells[i].attributes }}> {{- row.cells[i].data -}} - + {%- endfor %} {% endfor %}