#51530 closed enhancement (duplicate)
wp_nonce_field may render inputs with the same id attributes
| Reported by: | Anton Korotkoff | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 5.5.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Fixed formatting