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. Built from https://develop.svn.wordpress.org/trunk@61034 git-svn-id: http://core.svn.wordpress.org/trunk@60370 1a063a9b-81f0-0310-95a4-ce76da25c4cd
101 KiB
101 KiB