From b5f86054063b9cdb535621919dc36b45d9c1ebb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Tisza?= Date: Fri, 16 Feb 2024 15:34:54 +0000 Subject: [PATCH] Revert "Filter out null external link attributes" This reverts commit 760641e18068706bc6257747c42882d83a30399e. Reason for revert: it was a quick fix, has been fixed properly in core instead in I907c22ef070616d81b9a50b0e807a7b8f78b59b5. Bug: T357668 Change-Id: I4ec440c1e326419a8be5457b79c5374316755a53 --- includes/ImageMap.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/includes/ImageMap.php b/includes/ImageMap.php index 24aae31..b2419fe 100644 --- a/includes/ImageMap.php +++ b/includes/ImageMap.php @@ -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';