[wp-trac] [WordPress Trac] #44126: Adding fields to comments_form args prevents checkbox displaying

WordPress Trac noreply at wordpress.org
Thu May 17 18:47:10 UTC 2018


#44126: Adding fields to comments_form args prevents checkbox displaying
--------------------------+-----------------------------
 Reporter:  pross         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Privacy       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Steps to reproduce:

 in a comments.php pass the $args to comments_form

 {{{
 comment_form( array(
         'fields' => array(
             'author' => 'Hello World!',
         ),
 ));
 }}}

 Because fields is now set the privacy checkbox will never display.

 comment-template.php needs to check whether ['fields']['cookies'] is set.

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


More information about the wp-trac mailing list