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.
Built from https://develop.svn.wordpress.org/trunk@31053


git-svn-id: http://core.svn.wordpress.org/trunk@31034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-01-05 19:10:23 +00:00
parent e6a74136f9
commit 1541bc1537
2 changed files with 3 additions and 2 deletions

View File

@ -48,8 +48,9 @@ if ( !defined('ABSPATH') )
<?php
if ( ! empty( $comment->comment_author_url ) && 'http://' != $comment->comment_author_url ) {
$link = '<a href="' . $comment->comment_author_url . '" rel="external nofollow" target="_blank">' . __('visit site') . '</a>';
$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:' );
} ?></td>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-alpha-31052';
$wp_version = '4.2-alpha-31053';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.