WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/14/2015 03:47:02 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Replace hardcoded usage of comment-page with the comment pagination base.

props johnbillion, SergeyBiryukov, webord.
fixes #18084.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment-template.php

    r31412 r31459  
    659659
    660660        if ( $wp_rewrite->using_permalinks() )
    661             $link = user_trailingslashit( trailingslashit( get_permalink( $comment->comment_post_ID ) ) . 'comment-page-' . $args['page'], 'comment' );
     661            $link = user_trailingslashit( trailingslashit( get_permalink( $comment->comment_post_ID ) ) . $wp_rewrite->comments_pagination_base . '-' . $args['page'], 'comment' );
    662662        else
    663663            $link = add_query_arg( 'cpage', $args['page'], get_permalink( $comment->comment_post_ID ) );
Note: See TracChangeset for help on using the changeset viewer.