WordPress.org

Make WordPress Core

Opened 2 months ago

Last modified 2 months ago

#53678 new defect (bug)

Comment author filter is not applied to comment reply

Reported by: mjulian7 Owned by:
Milestone: 5.9 Priority: normal
Severity: minor Version:
Component: Comments Keywords: has-patch
Focuses: Cc:

Description

comment_form_title() uses get_comment_author() to display the comment author, however get_comment_reply_link() uses $comment->comment_author.

Therefore the latter does not apply the get_comment_author filter.

Change History (3)

This ticket was mentioned in PR #1501 on WordPress/wordpress-develop by mjulian87.


2 months ago

  • Keywords has-patch added

Trac ticket: https://core.trac.wordpress.org/ticket/53678

get_comment_author filters are applied in the output of the comment form, but not during the comment reply.

get_comment_author( $comment->comment_ID ) should be used instead of $comment->comment_author inside get_comment_reply_link() function.

This ticket was mentioned in PR #1501 on WordPress/wordpress-develop by mjulian87.


2 months ago

Trac ticket: https://core.trac.wordpress.org/ticket/53678

get_comment_author filters are applied in the output of the comment form, but not during the comment reply.

get_comment_author( $comment->comment_ID ) should be used instead of $comment->comment_author inside get_comment_reply_link() function.

#3 @SergeyBiryukov
2 months ago

  • Component changed from General to Comments
  • Milestone changed from Awaiting Review to 5.9
Note: See TracTickets for help on using tickets.