Node 'title' and 'content' classes are printed twice

Created on 1 August 2014, almost 10 years ago
Updated 28 November 2023, 7 months ago

Hello community, it's the first time I report something so tell me if I'm not doing it right...

I noticed that the function tao_preprocess_node(&$vars) have a strange behaviour.

In fact,

$vars['title_attributes_array']['class'][] = $vars['hook'] . '-title';
$vars['title_attributes_array']['class'][] = 'clearfix';

And...

$vars['content_attributes_array']['class'][] = $vars['hook'] . '-content';
$vars['content_attributes_array']['class'][] = 'clearfix';
$vars['content_attributes_array']['class'][] = 'prose';

...print their classes twice. I tried on a fresh install with the last drupal core and activated tao only and got the same result on local and distant server.

How can I fix this ?

πŸ’¬ Support request
Status

Fixed

Version

3.1

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.69.0 2024