From 7d7b33ff497d699aba4ab75826a2921830c30a33 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 5 Jan 2015 19:09:36 +0000 Subject: [PATCH] Pass comment author name and comment ID to 'get_comment_author_link' filter on Edit Comment screen, for consistency with [30092]. props tyxla. fixes #30894. git-svn-id: https://develop.svn.wordpress.org/trunk@31053 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/edit-form-comment.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/edit-form-comment.php b/src/wp-admin/edit-form-comment.php index d6e3d4e1a0..57a57037d5 100644 --- a/src/wp-admin/edit-form-comment.php +++ b/src/wp-admin/edit-form-comment.php @@ -48,8 +48,9 @@ if ( !defined('ABSPATH') ) comment_author_url ) && 'http://' != $comment->comment_author_url ) { $link = '' . __('visit site') . ''; + $author = get_comment_author( $comment->comment_ID ); /** This filter is documented in wp-includes/comment-template.php */ - printf( __( 'URL (%s):' ), apply_filters( 'get_comment_author_link', $link ) ); + printf( __( 'URL (%s):' ), apply_filters( 'get_comment_author_link', $link, $author, $comment->comment_ID ) ); } else { _e( 'URL:' ); } ?>