Fix paginate comment link slashing. Props AntonShevchuk. fixes #8821 for 2.7

git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10336 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-01-08 18:27:25 +00:00
parent 7622069daf
commit 7194e1e88a

View File

@ -1354,7 +1354,7 @@ function paginate_comments_links($args = array()) {
'add_fragment' => '#comments'
);
if ( $wp_rewrite->using_permalinks() )
$defaults['base'] = user_trailingslashit(get_permalink() . 'comment-page-%#%', 'commentpaged');
$defaults['base'] = user_trailingslashit(trailingslashit(get_permalink()) . 'comment-page-%#%', 'commentpaged');
$args = wp_parse_args( $args, $defaults );
$page_links = paginate_links( $args );