Comments: Ensure the correct comment ID is passed to the get_comment_author_url filter.

Props dominik.schwind

Fixes #41334


git-svn-id: https://develop.svn.wordpress.org/trunk@41127 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2017-07-24 22:02:45 +00:00
parent a661557bce
commit 7a965fcfe6
2 changed files with 28 additions and 1 deletions

View File

@@ -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;
}
/**