Make WordPress Core

Opened 16 months ago

Last modified 9 months ago

#58604 new defect (bug)

title_reply_to Value of comment_form() Function Isn't Working

Reported by: metinmete's profile metinmete Owned by:
Milestone: Awaiting Review Priority: normal
Severity: major Version: 6.2.2
Component: Comments Keywords: reporter-feedback
Focuses: Cc:

Description

Hello everyone, friends;

I encountered a problem when customizing the comment form. If I add the title_reply_to value to the comment_form() function, get the reply_to_text value in the get_comment_reply_link() function.

Has anyone had this problem before? Or am I experiencing this problem due to an error?

<?php
$fields        = array(
    'author' => '...',
);
$args          = array(

    'title_reply' => __('Leave a Reply', 'xxx'), // This value works
    'title_reply_to' => __('Leave a Reply to %s', 'xxx'), // This value doesn't work
    'title_reply_before' => '<h2 id="reply-title" class="comment-reply-title"><i></i>', // The problem is when I add an icon to this value
    'title_reply_after' => '</h2>',
    'fields' => apply_filters('comment_form_default_fields', $fields)
);
comment_form($args);

Change History (2)

#1 @sabernhardt
12 months ago

  • Component changed from General to Comments

#2 @yeogee
9 months ago

Now, I've encountered this issue too. I am using WordPress 6.4.2.

Note: See TracTickets for help on using tickets.