From 338a6627aadbeab27425a3070ac59132a94c33d5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C4=9Bj=20Grabovsk=C3=BD?= Date: Sun, 15 Feb 2015 12:12:22 +0100 Subject: [PATCH] Add "rel=discussion" attribute to talk page tabs in skin template Bug: T65198 Change-Id: Ifd1a7333c7b657d74860d206ea5b82d29bf97851 --- RELEASE-NOTES-1.26 | 1 + includes/skins/SkinTemplate.php | 1 + 2 files changed, 2 insertions(+) diff --git a/RELEASE-NOTES-1.26 b/RELEASE-NOTES-1.26 index cd89948cbc..de34ffcd18 100644 --- a/RELEASE-NOTES-1.26 +++ b/RELEASE-NOTES-1.26 @@ -27,6 +27,7 @@ production. === Bug fixes in 1.26 === * (bug 51283) load.php sometimes sends 304 response without full headers +* (T65198) Talk page tabs now have a "rel=discussion" attribute === Action API changes in 1.26 === * API action=query&list=tags: The displayname can now be boolean false if the diff --git a/includes/skins/SkinTemplate.php b/includes/skins/SkinTemplate.php index 5364719e29..ae78b2c3b2 100644 --- a/includes/skins/SkinTemplate.php +++ b/includes/skins/SkinTemplate.php @@ -1076,6 +1076,7 @@ class SkinTemplate extends Skin { $xmlID = 'ca-nstab-' . $xmlID; } elseif ( isset( $link['context'] ) && $link['context'] == 'talk' ) { $xmlID = 'ca-talk'; + $link['rel'] = 'discussion'; } elseif ( $section == 'variants' ) { $xmlID = 'ca-varlang-' . $xmlID; } else { -- 2.20.1