From 69a039aeeb0592909657786a85dd8c676e9470e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Mon, 25 Aug 2014 16:40:42 +0200 Subject: [PATCH] IndexPager: Don't generate rel=first and rel=last These values for the "rel" attribute (aliases for 'begin' and 'end', respectively) have only appeared as proposals for the HTML4 specification, but were then explicitly dropped. The story of them and more links are available on (search for 'first', 'last', 'begin', 'end'). The gist is that they were intentionally dropped and therefore should not be used. Change-Id: I33afd1364bf9ccf79c11a2a050ad0c4ff52c447a --- includes/pager/IndexPager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/pager/IndexPager.php b/includes/pager/IndexPager.php index 1d93c27f68..2142227e74 100644 --- a/includes/pager/IndexPager.php +++ b/includes/pager/IndexPager.php @@ -457,7 +457,7 @@ abstract class IndexPager extends ContextSource implements Pager { } $attrs = array(); - if ( in_array( $type, array( 'first', 'prev', 'next', 'last' ) ) ) { + if ( in_array( $type, array( 'prev', 'next' ) ) ) { # HTML5 rel attributes $attrs['rel'] = $type; } -- 2.20.1