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
This commit is contained in:
parent
6674856a90
commit
80b08e3a29
|
@ -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