diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 92c981c..883e2e5 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -2089,14 +2089,9 @@ function template_preprocess_table(&$variables) { // Flags. $is_sticky = !empty($variables['sticky']); $is_responsive = !empty($variables['responsive']); - $variables['attributes'] = new Attribute(array('class' => array()) + $variables['attributes']); - - // Table headers. (Drupal supports only one, that's why it's called 'header'). - // Headers needed for reference of active sorting - // header after its cells are processed - // array_values indexes for the table sort to work - // @todo Clarify why this variable is used or fix to use variables['header'] - // directly. + $variables['attributes'] = new Attribute($variables['attributes']); + + // Table header. if (!empty($variables['header']) && is_array($variables['header'])) { $variables['header'] = array_values($variables['header']); }