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';