From d664f9888f580efd2ddade2e0f69d41d9fd0f966 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@10335 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 );