From 13edf95c78ef0dcf55bad196edbb92064f4654c7 Mon Sep 17 00:00:00 2001 From: westi Date: Fri, 21 Aug 2009 17:12:25 +0000 Subject: [PATCH] Add rel attribute to next/previous post links. Fixes #4209 props vladimir_kolesnikov git-svn-id: http://svn.automattic.com/wordpress/trunk@11866 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/link-template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index bdcc0296ce..53eaee7c1d 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -1206,8 +1206,9 @@ function adjacent_post_link($format, $link, $in_same_cat = false, $excluded_cate $title = apply_filters('the_title', $title, $post); $date = mysql2date(get_option('date_format'), $post->post_date); + $rel = $previous ? 'prev' : 'next'; - $string = ''; + $string = ''; $link = str_replace('%title', $title, $link); $link = str_replace('%date', $date, $link); $link = $string . $link . '';