diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 8ac4a4de45..7caeaa9300 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -2466,6 +2466,10 @@ function get_next_comments_link( $label = '', $max_page = 0 ) { $page = get_query_var('cpage'); + if ( ! $page ) { + $page = 1; + } + $nextpage = intval($page) + 1; if ( empty($max_page) ) diff --git a/wp-includes/version.php b/wp-includes/version.php index cc0631c1ed..e178d137d6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31616'; +$wp_version = '4.2-alpha-31617'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.