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
This commit is contained in:
westi 2009-08-21 17:12:25 +00:00
parent 82946b9484
commit 13edf95c78
1 changed files with 2 additions and 1 deletions

View File

@ -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 = '<a href="'.get_permalink($post).'">';
$string = '<a href="'.get_permalink($post).'" rel="'.$rel.'">';
$link = str_replace('%title', $title, $link);
$link = str_replace('%date', $date, $link);
$link = $string . $link . '</a>';