[wp-trac] [WordPress Trac] #16539: Duplicate search widgets cause ID conflicts

WordPress Trac noreply at wordpress.org
Tue Mar 26 21:01:44 UTC 2013


#16539: Duplicate search widgets cause ID conflicts
------------------------------+------------------
 Reporter:  solarissmoke      |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  3.6
Component:  Widgets           |     Version:  3.0
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+------------------

Comment (by WraithKenny):

 Version 7:
 1. uses the counter to increment the xhtml id's and drop form/submit id's
 after the first.
 2. avoids id's altogether in html5
 3. makes $search_form_counter, $form_id, $submit_id, and $text_id
 available to templates (nice side-effect)

 Tested with 2013, 2012, 2011, 2010. Successful with all except 2011 which
 has a custom template.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16539#comment:52>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list