Merge "Revert "Filter out null external link attributes""

This commit is contained in:
jenkins-bot 2024-02-16 16:19:19 +00:00 committed by Gerrit Code Review
commit 4b0aa6c502

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