mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 01:00:04 +00:00
Replace hardcoded usage of comment-page with the comment pagination base.
props johnbillion, SergeyBiryukov, webord. fixes #18084. git-svn-id: https://develop.svn.wordpress.org/trunk@31459 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -658,7 +658,7 @@ function get_comment_link( $comment = null, $args = array() ) {
|
||||
$args['page'] = ( !empty($in_comment_loop) ) ? get_query_var('cpage') : get_page_of_comment( $comment->comment_ID, $args );
|
||||
|
||||
if ( $wp_rewrite->using_permalinks() )
|
||||
$link = user_trailingslashit( trailingslashit( get_permalink( $comment->comment_post_ID ) ) . 'comment-page-' . $args['page'], 'comment' );
|
||||
$link = user_trailingslashit( trailingslashit( get_permalink( $comment->comment_post_ID ) ) . $wp_rewrite->comments_pagination_base . '-' . $args['page'], 'comment' );
|
||||
else
|
||||
$link = add_query_arg( 'cpage', $args['page'], get_permalink( $comment->comment_post_ID ) );
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user