From 5a318a56cc1933ea0a40ecf9feec3083208e8ac2 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Fri, 18 Oct 2024 12:19:34 +0330 Subject: [PATCH] Remove around comments in Special:Contributions .comment has a unicode-bidi: isolate; so this isn't needed. It fixes yet other regression of I919bb8270ddb13b38d747dba1a3a7fa0d3bb1a4f Bug: T377555 Change-Id: Id60a7df155e550639004543026459b97eb01d840 --- includes/pager/ContributionsPager.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/pager/ContributionsPager.php b/includes/pager/ContributionsPager.php index b56f4129c22..d718f465112 100644 --- a/includes/pager/ContributionsPager.php +++ b/includes/pager/ContributionsPager.php @@ -821,7 +821,6 @@ abstract class ContributionsPager extends RangeChronologicalPager { * @return string */ protected function formatComment( $row ) { - $dir = $this->getLanguage()->getDir(); $comment = $this->formattedComments[$row->{$this->revisionIdField}]; if ( $comment === '' ) { @@ -829,8 +828,7 @@ abstract class ContributionsPager extends RangeChronologicalPager { $comment = "$defaultComment"; } - $comment = Html::rawElement( 'bdi', [ 'dir' => $dir ], $comment ); - + // Don't wrap result of this with or any other element, see T377555 return $comment; }