[wp-trac] [WordPress Trac] #16576: comment_form() fields being displayed only for non logged in users

WordPress Trac noreply at wordpress.org
Wed Sep 3 05:31:41 UTC 2025


#16576: comment_form() fields being displayed only for non logged in users
---------------------------------------------------+---------------------
 Reporter:  maorb                                  |       Owner:  (none)
     Type:  enhancement                            |      Status:  new
 Priority:  normal                                 |   Milestone:
Component:  Comments                               |     Version:  3.0.5
 Severity:  normal                                 |  Resolution:
 Keywords:  has-patch needs-testing bulk-reopened  |     Focuses:
---------------------------------------------------+---------------------

Comment (by oglekler):

 I don't much like the idea of duplicating fields in the array. I wonder if
 {{{$original_fields = $fields;}}} can be added before {{{$fields =
 apply_filters( 'comment_form_default_fields', $fields );}}} and {{{!
 isset( $original_fields[ $name ] )}}} be used instead of {{{! in_array(
 $name, array( 'author', 'email', 'url', 'cookies' ), true )}}}

 @davidbaumwald can you please take a look at this? It looks quite
 straightforward to proceed.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/16576#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list