mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ImageMap
synced 2024-11-23 13:56:46 +00:00
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:
parent
760641e180
commit
b5f8605406
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue