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:
parent
82946b9484
commit
13edf95c78
|
@ -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>';
|
||||
|
|
Loading…
Reference in New Issue