Opened 11 years ago
Last modified 6 years ago
#26596 new defect (bug)
Edit comments from wpAdmin don't process well radio button fields
Reported by: | corretge | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.7 |
Component: | Comments | Keywords: | has-patch needs-refresh |
Focuses: | Cc: |
Description
I'm filtering for 'wp_comment_reply' to add a custom radio button selector in the wpAdmin comments.
Then the ajax request don't send this field value, always send the last one, checked or not.
wp-admin/js/edit-comments.js process all INPUT fields as a text (except type button)
I attach the patch to allow radio buttons but doesn't works for checkbox.
Attachments (1)
Change History (5)
#2
@
9 years ago
- Keywords has-patch needs-refresh added
Patch needs to be reformatted to follow core code standards
This ticket was mentioned in Slack in #core-comments by rachelbaker. View the logs.
9 years ago
#4
@
9 years ago
- Milestone changed from Awaiting Review to Future Release
Our current form processing only handles the text and hidden inputs, custom inputs of other field types would require custom code. I don't think we should include an enhancement for handling any other input type that could be added via a hook.
Moved to "Future Release" to fix the greedy input selector used in commentReply.send
to only text or hidden fields.
allow radio buttons on wpAdmin comments