[wp-trac] [WordPress Trac] #16576: comment_form() fields being displayed only for non logged in users
WordPress Trac
noreply at wordpress.org
Tue Oct 21 13:59:07 UTC 2025
#16576: comment_form() fields being displayed only for non logged in users
--------------------------------------------+----------------------------
Reporter: maorb | Owner: davidbaumwald
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.9
Component: Comments | Version: 3.0.5
Severity: normal | Resolution: fixed
Keywords: has-patch bulk-reopened commit | Focuses:
--------------------------------------------+----------------------------
Changes (by davidbaumwald):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"61034" 61034]:
{{{
#!CommitTicketReference repository="" revision="61034"
Comments: Ensure custom comment form fields appear for logged-in users
When a user is logged in, only the default comment textarea is shown by
the core `comment_form()` implementation, but custom fields supplied via
the
`fields` argument are omitted. This mismatch means plugin- and theme-added
fields
aren't visible to logged-in users, though they are visible to guests.
This change fixes this by moving the loop over `$args['fields']` inside
`comment_form()`, so that extra fields are rendered, regardless of login
status.
Props maorb, valendesigns, CarlSteffen, swissspidy, rachelbaker,
kushsharma, abcd95, iamadisingh, oglekler, welcher.
Fixes #16576.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16576#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list