mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ImageMap
synced 2024-11-27 15:40:03 +00:00
Merge "Revert "Filter out null external link attributes""
This commit is contained in:
commit
4b0aa6c502
|
@ -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