trailingslashit() fix for paged posts links from activeingredient. fixes #3163

git-svn-id: http://svn.automattic.com/wordpress/trunk@4603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2006-12-04 14:42:34 +00:00
parent 84ec7763be
commit 1877fbb867

View File

@ -180,7 +180,7 @@ function wp_link_pages($args = '') {
if ( '' == get_option('permalink_structure') )
$output .= '<a href="' . get_permalink() . '&amp;page=' . $i . '">'.$nextpagelink.'</a>';
else
$output .= '<a href="'.get_permalink().$i.'/">'.$nextpagelink.'</a>';
$output .= '<a href="' . trailingslashit(get_permalink()) . $i . '/">' . $nextpagelink . '</a>';
}
$output .= $after;
}