davidbaumwald
df78f7dc6d
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 .
Built from https://develop.svn.wordpress.org/trunk@61034
git-svn-id: http://core.svn.wordpress.org/trunk@60370 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-21 14:00:27 +00:00
..
2025-10-21 13:52:27 +00:00
2025-10-21 13:29:33 +00:00
2025-10-17 17:39:30 +00:00
2025-10-21 10:59:40 +00:00
2025-10-21 07:14:02 +00:00
2025-08-29 23:59:30 +00:00
2025-10-21 13:06:41 +00:00
2025-10-07 01:24:36 +00:00
2025-10-21 03:50:28 +00:00
2025-09-29 19:12:29 +00:00
2025-10-21 12:09:33 +00:00
2025-09-03 12:18:31 +00:00
2025-10-21 13:29:33 +00:00
2025-07-18 12:59:31 +00:00
2025-10-01 13:23:28 +00:00
2025-10-21 13:54:22 +00:00
2025-10-16 19:45:36 +00:00
2024-11-26 21:17:25 +00:00
2025-10-06 15:48:40 +00:00
2025-10-02 23:55:33 +00:00
2025-09-17 14:44:24 +00:00
2025-10-07 01:24:36 +00:00
2025-10-21 13:52:27 +00:00
2025-10-02 18:15:30 +00:00
2025-09-03 12:18:31 +00:00
2025-08-18 12:33:29 +00:00
2025-10-20 08:52:24 +00:00
2025-09-29 08:59:31 +00:00
2024-11-29 22:46:21 +00:00
2025-10-21 13:43:58 +00:00
2025-10-21 13:43:58 +00:00
2025-10-21 11:32:35 +00:00
2025-03-19 23:15:35 +00:00
2025-08-31 21:43:30 +00:00
2025-04-29 22:44:37 +00:00
2025-07-22 16:25:31 +00:00
2025-10-19 17:42:27 +00:00
2025-06-03 16:51:33 +00:00
2025-01-24 23:28:23 +00:00
2025-01-22 19:48:25 +00:00
2025-08-25 13:10:29 +00:00
2024-10-25 20:26:20 +00:00
2025-01-21 21:26:23 +00:00
2025-04-03 13:53:28 +00:00
2025-10-06 11:31:33 +00:00
2025-09-28 21:56:27 +00:00
2025-08-07 14:47:34 +00:00
2025-03-05 22:17:23 +00:00
2025-10-21 07:14:02 +00:00
2025-10-21 07:14:02 +00:00
2025-10-06 11:31:33 +00:00
2025-10-06 11:31:33 +00:00
2025-10-15 21:53:28 +00:00
2025-10-06 11:31:33 +00:00
2025-03-04 13:06:27 +00:00
2025-10-06 11:31:33 +00:00
2025-09-29 16:29:35 +00:00
2025-10-20 09:20:28 +00:00
2025-06-18 20:39:52 +00:00
2025-08-31 21:43:30 +00:00
2025-02-11 13:40:30 +00:00
2025-09-07 02:47:36 +00:00
2025-10-07 01:24:36 +00:00
2025-10-07 01:24:36 +00:00
2025-01-22 19:48:25 +00:00
2025-01-22 19:48:25 +00:00
2025-10-07 01:24:36 +00:00
2024-11-27 11:40:18 +00:00
2025-10-16 20:01:36 +00:00
2025-10-14 05:47:32 +00:00
2025-04-24 22:22:30 +00:00
2025-04-10 13:47:26 +00:00
2025-07-30 23:03:30 +00:00
2025-09-29 16:29:35 +00:00
2025-09-03 12:18:31 +00:00
2025-08-20 12:55:28 +00:00
2025-09-03 12:18:31 +00:00
2025-08-26 21:05:30 +00:00
2025-04-28 16:37:27 +00:00
2025-05-11 17:16:30 +00:00
2025-02-25 22:40:22 +00:00
2025-04-20 23:51:29 +00:00
2025-10-20 20:01:26 +00:00
2025-06-18 20:39:52 +00:00
2025-08-31 21:43:30 +00:00
2025-04-04 22:00:27 +00:00
2025-06-24 23:40:33 +00:00
2025-10-01 13:23:28 +00:00
2025-10-21 04:33:29 +00:00
2025-02-09 11:09:21 +00:00
2025-08-20 15:01:31 +00:00
2025-10-13 21:39:27 +00:00
2025-02-17 11:24:21 +00:00
2025-02-23 11:11:21 +00:00
2025-07-15 08:22:37 +00:00
2025-06-29 21:47:29 +00:00
2025-10-21 00:45:29 +00:00
2025-10-16 20:01:36 +00:00
2025-02-11 11:14:21 +00:00
2025-09-16 22:47:31 +00:00
2025-01-22 19:48:25 +00:00
2025-08-31 21:43:30 +00:00
2025-06-27 15:09:32 +00:00
2025-02-18 22:32:22 +00:00
2025-10-16 20:01:36 +00:00
2025-06-16 17:08:31 +00:00
2025-03-26 21:42:27 +00:00
2025-08-31 21:43:30 +00:00
2025-01-22 19:48:25 +00:00
2024-11-20 02:50:24 +00:00
2024-11-04 02:34:16 +00:00
2025-10-21 13:49:31 +00:00
2025-09-28 21:56:27 +00:00
2025-02-18 22:32:22 +00:00
2025-07-06 11:57:35 +00:00
2025-08-31 21:43:30 +00:00
2025-02-17 11:24:21 +00:00
2025-10-08 20:01:35 +00:00
2024-11-02 15:01:19 +00:00
2025-08-21 15:00:40 +00:00
2025-01-29 18:12:25 +00:00
2025-08-10 21:00:34 +00:00
2025-10-21 14:00:27 +00:00
2025-10-20 19:22:33 +00:00
2025-10-21 04:22:29 +00:00
2025-10-18 04:36:34 +00:00
2025-10-12 21:42:33 +00:00
2025-10-21 13:43:58 +00:00
2025-01-22 19:48:25 +00:00
2025-10-07 06:24:43 +00:00
2025-10-16 20:01:36 +00:00
2025-01-22 19:48:25 +00:00
2025-09-16 22:47:31 +00:00
2025-10-09 22:05:40 +00:00
2025-10-07 23:34:35 +00:00
2025-10-10 23:17:31 +00:00
2025-10-16 20:01:36 +00:00
2025-10-16 20:01:36 +00:00
2025-08-31 21:43:30 +00:00
2025-07-15 12:27:32 +00:00
2025-08-20 12:55:28 +00:00
2025-02-24 13:43:23 +00:00
2025-10-21 11:06:40 +00:00
2025-09-11 10:13:27 +00:00
2025-10-20 19:22:33 +00:00
2025-09-09 14:33:29 +00:00
2025-09-28 23:40:35 +00:00
2025-10-07 06:24:43 +00:00
2025-05-29 23:09:28 +00:00
2025-01-22 19:48:25 +00:00
2025-10-17 17:14:32 +00:00
2025-07-13 15:22:36 +00:00
2025-05-26 11:20:35 +00:00
2025-08-27 13:42:30 +00:00
2025-06-27 15:09:32 +00:00
2025-01-22 19:48:25 +00:00
2025-10-21 13:43:58 +00:00
2025-02-03 19:52:24 +00:00
2025-10-21 08:06:29 +00:00
2025-05-27 15:53:29 +00:00
2025-05-05 22:42:28 +00:00
2024-12-20 23:35:23 +00:00
2025-10-21 13:43:58 +00:00
2025-08-31 21:43:30 +00:00
2025-10-21 13:52:27 +00:00
2025-01-27 23:07:23 +00:00
2025-07-11 13:16:28 +00:00
2025-09-03 12:18:31 +00:00
2025-10-21 12:34:30 +00:00
2025-10-21 11:32:35 +00:00
2025-10-05 19:06:33 +00:00
2025-08-27 10:34:28 +00:00
2025-10-15 00:42:37 +00:00
2025-10-15 17:14:39 +00:00
2025-10-20 22:13:31 +00:00
2025-01-08 12:36:23 +00:00
2025-08-27 10:34:28 +00:00
2025-10-21 13:43:58 +00:00
2025-10-21 12:22:33 +00:00
2025-10-20 22:31:27 +00:00
2025-10-21 02:50:27 +00:00
2025-10-20 22:54:28 +00:00
2025-10-21 02:35:31 +00:00
2025-01-22 19:48:25 +00:00
2025-10-21 14:00:27 +00:00
2025-09-12 18:05:36 +00:00
2025-01-22 19:48:25 +00:00