Remove <bdi> 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
This commit is contained in:
Ebrahim Byagowi 2024-10-18 12:19:34 +03:30
parent b03632c26a
commit 5a318a56cc

View file

@ -821,7 +821,6 @@ abstract class ContributionsPager extends RangeChronologicalPager {
* @return string * @return string
*/ */
protected function formatComment( $row ) { protected function formatComment( $row ) {
$dir = $this->getLanguage()->getDir();
$comment = $this->formattedComments[$row->{$this->revisionIdField}]; $comment = $this->formattedComments[$row->{$this->revisionIdField}];
if ( $comment === '' ) { if ( $comment === '' ) {
@ -829,8 +828,7 @@ abstract class ContributionsPager extends RangeChronologicalPager {
$comment = "<span class=\"comment mw-comment-none\">$defaultComment</span>"; $comment = "<span class=\"comment mw-comment-none\">$defaultComment</span>";
} }
$comment = Html::rawElement( 'bdi', [ 'dir' => $dir ], $comment ); // Don't wrap result of this with <bdi> or any other element, see T377555
return $comment; return $comment;
} }