mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 14:45:45 +01:00
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:
parent
7622069daf
commit
7194e1e88a
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user