diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 9d9fc00ad7..d6815ad9a3 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -3455,8 +3455,14 @@ function rel_canonical() { $url = get_permalink( $id ); - if ( $page = get_query_var('cpage') ) { - $url = get_comments_pagenum_link( $page ); + $page = get_query_var( 'page' ); + if ( $page ) { + $url = trailingslashit( $url ) . user_trailingslashit( $page, 'single_paged' ); + } + + $cpage = get_query_var( 'cpage' ); + if ( $cpage ) { + $url = get_comments_pagenum_link( $cpage ); } echo '\n"; } diff --git a/wp-includes/version.php b/wp-includes/version.php index dbbae2fe20..5bca848f46 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34495'; +$wp_version = '4.4-alpha-34496'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.