From 3d46eb61713bb9921fb5a22e2f31d9963483818e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claes=20Gyllensv=C3=A4rd?= Date: Sat, 16 Jun 2012 11:38:38 +0200 Subject: [PATCH] Issue #1639318 by Letharion: Fixed theme_image to include a default but empty alt attribute. --- core/includes/theme.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 34e1ee5..ad61d13 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1694,6 +1694,8 @@ function theme_image($variables) { $attributes = $variables['attributes']; $attributes['src'] = file_create_url($variables['uri']); + $variables += array('alt' => ''); + foreach (array('width', 'height', 'alt', 'title') as $key) { if (isset($variables[$key])) { $attributes[$key] = $variables[$key]; -- 1.7.9.5