From: Matěj Grabovský Date: Sun, 15 Feb 2015 11:12:22 +0000 (+0100) Subject: Add "rel=discussion" attribute to talk page tabs in skin template X-Git-Tag: 1.31.0-rc.0~11093^2 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28%27user%27%2C%20userid=session.user.id%29%20%7D%7D?a=commitdiff_plain;h=338a6627aadbeab27425a3070ac59132a94c33d5;p=lhc%2Fweb%2Fwiklou.git Add "rel=discussion" attribute to talk page tabs in skin template Bug: T65198 Change-Id: Ifd1a7333c7b657d74860d206ea5b82d29bf97851 --- 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 {