Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
There's an unused call to get_class in core/lib/Drupal/Core/Render/Element/MoreLink.php
public function getInfo() {
$class = get_class($this);
$info = parent::getInfo();
return array(
'#title' => $this->t('More'),
'#theme_wrappers' => array(
'container' => array(
'#attributes' => array('class' => array('more-link')),
),
),
) + $info;
}
Proposed resolution
Remove the extra call.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2399323-1.patch | 479 bytes | pcambra |
Comments
Comment #1
pcambraComment #2
dawehnerGood spot!
Comment #3
alexpottDead code is a bug. Zero disruption - committed 835b66b and pushed to 8.0.x. Thanks!