[wp-trac] [WordPress Trac] #6564: Multiple admin forms means
multiple ID="_wpnonce", rendering XHTML invalid
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 3 04:35:00 GMT 2008
#6564: Multiple admin forms means multiple ID="_wpnonce", rendering XHTML invalid
----------------------------+-----------------------------------------------
Reporter: markjaquith | Owner: anonymous
Type: defect | Status: new
Priority: low | Milestone: 2.6
Component: Administration | Version: 2.5
Severity: minor | Keywords:
----------------------------+-----------------------------------------------
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).
--
Ticket URL: <http://trac.wordpress.org/ticket/6564>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list