From 80b08e3a29ad1326625e82f5ae7fdfbb8ac6a424 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 8 Jan 2009 18:26:52 +0000 Subject: [PATCH] Fix paginate comment link slashing. Props AntonShevchuk. fixes #8821 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@10335 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/link-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 0244cb49c4..893a2b6336 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -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 );