#51530 closed enhancement (duplicate)
wp_nonce_field may render inputs with the same id attributes
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.5.1 |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description
The $name arg is being used as an ID attribute for the hidden input. That's why it is possible that wp_nonce_field renders inputs with the same IDs, which is not valid in terms of HTML.
The attached patch has this fixed by including the actual nonce value into the ID value concatenated with the name.
Attachments (2)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Fixed formatting