Comments: Show custom comment form fields for logged-in users.#9343
Comments: Show custom comment form fields for logged-in users.#9343himanshupathak95 wants to merge 4 commits intoWordPress:trunkfrom
Conversation
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
71418c1 to
46f2eb0
Compare
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
46f2eb0 to
dec09bd
Compare
dec09bd to
c0c0201
Compare
|
Committed in [61034] |
Trac ticket: https://core.trac.wordpress.org/ticket/16576
This PR fixes the issue where custom comment form fields added via the
fieldsparameter are only visible to non-logged-in users. Logged-in users should be able to use custom comment fields. Currently, only default WordPress fields (author, email, and url) are hidden for logged-in users since this data comes from their profile, but custom fields should remain visible.This PR modifies the field processing logic in
comment_form()to show custom fields to both logged-in and non-logged-in users, while continuing to hide default WordPress fields for logged-in users.Testing Instructions
fieldsparameterScreenshots