WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 3 months ago

#26596 new defect (bug)

Edit comments from wpAdmin don't process well radio button fields

Reported by: corretge Owned by:
Milestone: Future Release 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)

wp_allow_radio_repy_comments.diff (719 bytes) - added by corretge 3 years ago.
allow radio buttons on wpAdmin comments

Download all attachments as: .zip

Change History (5)

@corretge
3 years ago

allow radio buttons on wpAdmin comments

#1 @SergeyBiryukov
3 years ago

  • Version changed from trunk to 2.7

Introduced in [8720].

#2 @chriscct7
10 months 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.


3 months ago

#4 @rachelbaker
3 months 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.

Note: See TracTickets for help on using tickets.