Verified Commit d7d9ebd2 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #2991219 by SchnWalter, ultrabob, nitesh624, Kristen Pol, jungle,...

Issue #2991219 by SchnWalter, ultrabob, nitesh624, Kristen Pol, jungle, partyka: template_preprocess_file_link() should not add microformats attribute
parent ba77d3f4
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1454,9 +1454,7 @@ function template_preprocess_file_link(&$variables) {
  $variables['#cache']['contexts'][] = 'url.site';

  $mime_type = $file->getMimeType();
  // Set options as per anchor format described at
  // http://microformats.org/wiki/file-format-examples
  $options['attributes']['type'] = $mime_type . '; length=' . $file->getSize();
  $options['attributes']['type'] = $mime_type;

  // Use the description as the link text if available.
  if (empty($variables['description'])) {