From 06e6edbd61e2ad4a1d12fbaf48c749a47328b351 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 24 Jul 2017 22:03:45 +0000 Subject: [PATCH] Comments: Ensure the correct comment ID is passed to the `get_comment_author_url` filter. Props dominik.schwind Fixes #41334 Built from https://develop.svn.wordpress.org/trunk@41127 git-svn-id: http://core.svn.wordpress.org/trunk@40967 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment-template.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index fe17e2f043..3fd466f933 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -306,7 +306,7 @@ function get_comment_author_url( $comment_ID = 0 ) { if ( ! empty( $comment ) ) { $author_url = ( 'http://' == $comment->comment_author_url ) ? '' : $comment->comment_author_url; $url = esc_url( $author_url, array( 'http', 'https' ) ); - $id = $comment->ID; + $id = $comment->comment_ID; } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index b7feb8f5b9..bbbc3c2eec 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-41125'; +$wp_version = '4.9-alpha-41127'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.