From 8aa27b50133ec8f3021d3c152a996eaddecd5e41 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Thu, 4 Dec 2008 20:26:43 +0000 Subject: [PATCH] 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 --- wp-includes/comment-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 8780c47e36..ea1bc6e727 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -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;