[wp-trac] [WordPress Trac] #57106: Allowing comment form error pages
WordPress Trac
noreply at wordpress.org
Mon Nov 14 14:27:08 UTC 2022
#57106: Allowing comment form error pages
--------------------------+-----------------------------
Reporter: apermo | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Current status quo:
As of now, it is not possible to have customized a customized validation
for forms (covered in #57105 )
And every single error will either end in a wp_die() or an exit.
Proposal:
Instead of always ending in `wp_die()` we could forward to the referer
page, including the error_message and the $_POST data, to prefill the form
(especially with the comment, since these would be really painful if
lost).
`comment_form()` would require an enhancement to show errors.
This idea is still in progress, I'll provide a working proof of concept
later, but I wanted to open this for discussion.
Note: Will also need some kind of representation for the Rest API.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57106>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list