Link to comments on the page they are on. Fixes #8488 props johnconners.
git-svn-id: https://develop.svn.wordpress.org/trunk@10043 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d1926da5bb
commit
8aa27b5013
|
@ -460,7 +460,7 @@ function get_comment_link( $comment = null, $args = array() ) {
|
|||
$args = wp_parse_args( $args, $defaults );
|
||||
|
||||
if ( '' === $args['per_page'] && get_option('page_comments') )
|
||||
$args['per_page'] = get_query_var('comments_per_page');
|
||||
$args['per_page'] = get_option('comments_per_page');
|
||||
|
||||
if ( empty($args['per_page']) ) {
|
||||
$args['per_page'] = 0;
|
||||
|
|
Loading…
Reference in New Issue