WordPress.org

Make WordPress Core

Changeset 31053


Ignore:
Timestamp:
01/05/2015 07:09:36 PM (7 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-comment.php

    r30842 r31053  
    4949        if ( ! empty( $comment->comment_author_url ) && 'http://' != $comment->comment_author_url ) {
    5050            $link = '<a href="' . $comment->comment_author_url . '" rel="external nofollow" target="_blank">' . __('visit site') . '</a>';
     51            $author = get_comment_author( $comment->comment_ID );
    5152            /** This filter is documented in wp-includes/comment-template.php */
    52             printf( __( 'URL (%s):' ), apply_filters( 'get_comment_author_link', $link ) );
     53            printf( __( 'URL (%s):' ), apply_filters( 'get_comment_author_link', $link, $author, $comment->comment_ID ) );
    5354        } else {
    5455            _e( 'URL:' );
Note: See TracChangeset for help on using the changeset viewer.