mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 15:17:42 +02:00
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:
parent
e6a74136f9
commit
1541bc1537
@ -48,8 +48,9 @@ if ( !defined('ABSPATH') )
|
|||||||
<?php
|
<?php
|
||||||
if ( ! empty( $comment->comment_author_url ) && 'http://' != $comment->comment_author_url ) {
|
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>';
|
$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 */
|
/** 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 {
|
} else {
|
||||||
_e( 'URL:' );
|
_e( 'URL:' );
|
||||||
} ?></td>
|
} ?></td>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user