If class was once set and gets cleared it creates an emtpy class="".

Change...

// Return if 'class' setting is not available.
if (!isset($settings['class'])) {
  return;
}

to...

// Return if 'class' setting is not available.
if (!isset($settings['class']) || empty($settings['class'])) {
  return;
}

Comments

yannickoo’s picture

Status: Active » Fixed

Thank you for reporting this issue, fixed with 6c13339 :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.