The $heading param of theme_links only allows passing in of a class and not any other attribute. This simply alters the theming to accept more than a class and changes the few calls of theme_links which pass $header to pass attributes = array('class' => array()) instead of class = array().

Comments

Zarabadoo’s picture

Status: Needs review » Reviewed & tested by the community

I applied this and all looks to be functioning properly and without issue.

bowersox’s picture

sub

Status: Reviewed & tested by the community » Needs work

The last submitted patch failed testing.

bowersox’s picture

Version: 7.x-dev » 8.x-dev

I think this is a good API improvement. At this point we'll need to work on it for Drupal 8.

sun’s picture

I've incorporated a backwards compatible fix for this issue into #98696: Various bugs in theme_links()

sun’s picture

Status: Needs work » Closed (duplicate)