Commit 34cce8dc authored by alexpott's avatar alexpott
Browse files

Issue #2310341 by ilkkave | YesCT: Remove backwards compatibility for...

Issue #2310341 by ilkkave | YesCT: Remove backwards compatibility for $heading['class'] in template_preprocess_menu_tree().
parent 1bf3b8dc
...@@ -323,11 +323,6 @@ function template_preprocess_menu_tree(&$variables) { ...@@ -323,11 +323,6 @@ function template_preprocess_menu_tree(&$variables) {
'level' => 'h2', 'level' => 'h2',
'attributes' => array(), 'attributes' => array(),
); );
// @todo Remove backwards compatibility for $heading['class'].
// https://www.drupal.org/node/2310341
if (isset($heading['class'])) {
$heading['attributes']['class'] = $heading['class'];
}
// Convert the attributes array into an Attribute object. // Convert the attributes array into an Attribute object.
$heading['attributes'] = new Attribute($heading['attributes']); $heading['attributes'] = new Attribute($heading['attributes']);
$heading['text'] = String::checkPlain($heading['text']); $heading['text'] = String::checkPlain($heading['text']);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment