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
This commit is contained in:
John Blackbourn 2017-07-24 22:03:45 +00:00
parent 8c55e79bef
commit 06e6edbd61
2 changed files with 2 additions and 2 deletions

View File

@ -306,7 +306,7 @@ function get_comment_author_url( $comment_ID = 0 ) {
if ( ! empty( $comment ) ) { if ( ! empty( $comment ) ) {
$author_url = ( 'http://' == $comment->comment_author_url ) ? '' : $comment->comment_author_url; $author_url = ( 'http://' == $comment->comment_author_url ) ? '' : $comment->comment_author_url;
$url = esc_url( $author_url, array( 'http', 'https' ) ); $url = esc_url( $author_url, array( 'http', 'https' ) );
$id = $comment->ID; $id = $comment->comment_ID;
} }
/** /**

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.