jenkins-bot has submitted this change and it was merged.
Change subject: Add ids to "Did you mean" links so they can be distinguished
......................................................................
Add ids to "Did you mean" links so they can be distinguished
Add distinct labels on the did-you-mean suggestion elements
so anyone who wants to detect or identify them can.
Bug: T110359
Change-Id: I77048275063afe1e6e2f4f87eb91ad3576f49a07
---
M includes/specials/SpecialSearch.php
1 file changed, 3 insertions(+), 3 deletions(-)
Approvals:
Bearloga: Looks good to me, but someone else must approve
EBernhardson: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/specials/SpecialSearch.php
b/includes/specials/SpecialSearch.php
index 06cad42..d806be3 100644
--- a/includes/specials/SpecialSearch.php
+++ b/includes/specials/SpecialSearch.php
@@ -436,7 +436,7 @@
$suggest = Linker::linkKnown(
$this->getPageTitle(),
$textMatches->getSuggestionSnippet() ?: null,
- array(),
+ array( 'id' => 'mw-search-DYM-suggestion' ),
$stParams
);
@@ -470,7 +470,7 @@
$rewritten = Linker::linkKnown(
$this->getPageTitle(),
$textMatches->getQueryAfterRewriteSnippet() ?: null,
- array(),
+ array( 'id' => 'mw-search-DYM-rewritten' ),
$stParams
);
@@ -479,7 +479,7 @@
$original = Linker::linkKnown(
$this->getPageTitle(),
htmlspecialchars( $term ),
- array(),
+ array( 'id' => 'mw-search-DYM-original' ),
$stParams
);
--
To view, visit https://gerrit.wikimedia.org/r/241098
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I77048275063afe1e6e2f4f87eb91ad3576f49a07
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Tjones <[email protected]>
Gerrit-Reviewer: Bearloga <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: MaxSem <[email protected]>
Gerrit-Reviewer: Ricordisamoa <[email protected]>
Gerrit-Reviewer: Tjones <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits