From: Bartosz DziewoƄski Date: Mon, 25 Aug 2014 14:40:42 +0000 (+0200) Subject: IndexPager: Don't generate rel=first and rel=last X-Git-Tag: 1.31.0-rc.0~14210 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=69a039aeeb0592909657786a85dd8c676e9470e6;p=lhc%2Fweb%2Fwiklou.git 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 --- 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; }