Revert "Filter out null external link attributes"

This reverts commit 760641e180.

Reason for revert: it was a quick fix, has been fixed properly in core
instead in I907c22ef070616d81b9a50b0e807a7b8f78b59b5.

Bug: T357668
Change-Id: I4ec440c1e326419a8be5457b79c5374316755a53
This commit is contained in:
Gergő Tisza 2024-02-16 15:34:54 +00:00
parent 760641e180
commit b5f8605406

View file

@ -247,10 +247,7 @@ class ImageMap implements ParserFirstCallInitHook {
$attribs = [];
if ( $externLink ) {
// Get the 'target' and 'rel' attributes for external link.
$attribs = array_filter(
$parser->getExternalLinkAttribs( $title ),
fn ( $attr ) => $attr !== null
);
$attribs = $parser->getExternalLinkAttribs( $title );
$attribs['href'] = $title;
$attribs['class'] = 'plainlinks';