diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index a86e5e7286..1dd1ff7ab0 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -736,7 +736,7 @@ function get_comment_link( $comment = null, $args = array() ) { } } - if ( $cpage ) { + if ( $cpage && get_option( 'page_comments' ) ) { if ( $wp_rewrite->using_permalinks() ) { if ( $cpage ) { $link = trailingslashit( $link ) . $wp_rewrite->comments_pagination_base . '-' . $cpage; diff --git a/wp-includes/version.php b/wp-includes/version.php index 8884551600..c973ca769c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4.1-alpha-35932'; +$wp_version = '4.4.1-alpha-35934'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.