Skip to content

Commit

Permalink
Merge pull request #131 from misd-service-development/alttext
Browse files Browse the repository at this point in the history
Always output alt attribute even if not set
  • Loading branch information
JeebsUK authored Oct 16, 2020
2 parents f180277 + cb90127 commit e74bc00
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions template.php
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,11 @@ function cambridge_theme_image($variables) {
// Make sure class is added to all images.
$variables['attributes']['class'][] = 'campl-scale-with-grid';

// We should always output the alt attribute even if its not set
if (!isset($variables['alt'])) {
$variables['alt'] = "";
}

return theme_image($variables);
}

Expand Down

0 comments on commit e74bc00

Please sign in to comment.