[wp-trac] [WordPress Trac] #58604: title_reply_to Value of comment_form() Function Isn't Working

WordPress Trac noreply at wordpress.org
Thu Jun 22 18:37:20 UTC 2023


#58604: title_reply_to Value of comment_form() Function Isn't Working
--------------------------+-------------------------------
 Reporter:  metinmete     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  6.2.2
 Severity:  major         |   Keywords:  reporter-feedback
  Focuses:                |
--------------------------+-------------------------------
 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
 <?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);
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58604>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list