diff --git a/core/modules/file/file.field.inc b/core/modules/file/file.field.inc index f09760f..d026b5b 100644 --- a/core/modules/file/file.field.inc +++ b/core/modules/file/file.field.inc @@ -99,10 +99,6 @@ function template_preprocess_file_widget_multiple(&$variables) { // Render the previously hidden elements, using render() instead of // drupal_render(), to undo the earlier hide(). - $operations = ''; - foreach ($operations_elements as $operation_element) { - $operations .= render($operation_element); - } $display = ''; if ($element['#display_field']) { unset($widget['display']['#title']); @@ -121,7 +117,9 @@ function template_preprocess_file_widget_multiple(&$variables) { $row[] = $display; } $row[] = $weight; - $row[] = SafeMarkup::set($operations); + $row[] = array( + 'data' => $operations_elements, + ); $rows[] = array( 'data' => $row, 'class' => isset($widget['#attributes']['class']) ? array_merge($widget['#attributes']['class'], array('draggable')) : array('draggable'),