[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 16:24:48 UTC 2025
#16576: comment_form() fields being displayed only for non logged in users
-------------------------------------+----------------------------
Reporter: maorb | Owner: davidbaumwald
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 6.9
Component: Comments | Version: 3.0.5
Severity: normal | Resolution:
Keywords: has-patch bulk-reopened | Focuses:
-------------------------------------+----------------------------
Changes (by davidbaumwald):
* keywords: has-patch needs-testing bulk-reopened => has-patch bulk-
reopened
* owner: (none) => davidbaumwald
* status: new => reviewing
* milestone: => 6.9
Comment:
@oglekler Good call! This seems like a low-effort QOL fix that would
render custom fields.
The first thing I wondered about was if we're setting an un-filterable
list of default fields we always want to not show when a user is logged
in, what about custom fields that a developer might also want to hide.
However, I think that the `comment_form_fields` filter right above the
loop could easily be adapted to unset any other keys necessary.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16576#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list