#1786 closed enhancement (fixed)
Add hook for blank or incorrect comment field errors
| Reported by: | filosofo | Owned by: | markjaquith |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | General | Version: | 1.6 |
| Severity: | normal | Keywords: | comments error bg|has-patch bg|commit |
| Cc: | Focuses: |
Description
In this discussion (button patch for comment post section), someone suggested adding a function to improve the way WordPress handles blank comment fields and missing required emails (In other words, do something other than just die with 'Error: please enter a valid email address,' for example).
My attached patch instead adds a hook that will allow plugin authors and theme developers to create their own custom error responses.
The default action is the existing die behavior.
Attachments (2)
Change History (8)
#3
@
20 years ago
- Owner changed from to
- Status assigned → new
I've uploaded a new patch that uses wp_die to accomplish what I was hoping to do with this back when I started this ticket.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I like it!