Unverified Commit d7d9ebd2 authored by larowlan's avatar larowlan
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
......@@ -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'])) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment