Multiple admin forms means multiple ID="_wpnonce", rendering XHTML invalid
|Reported by:||markjaquith||Owned by:||markjaquith|
If you have more than one nonced admin form one page, you'll have multiple hidden inputs with an ID of "_wpnonce" which renders the XHTML invalid.
autosave.js appears to rely on that ID ... one solution would be to increment the ID each time it is used: _wpnonce, _wpnonce2, _wpnonce3.
It's a hidden form field, so the only real use for the ID is in jQuery, and it doesn't appear we're using it other than in autosave (and there's only one _wpnonce ID on the write screen).
Change History (13)
comment:1 markjaquith — 6 years ago
- Keywords has-patch needs-testing added
- Owner changed from anonymous to markjaquith
- Status changed from new to assigned
- Keywords needs-patch added; has-patch needs-testing removed