[wp-trac] [WordPress Trac] #12133: get_field_id() and get_field_name() break when passed a name in array format

WordPress Trac noreply at wordpress.org
Mon Jan 21 21:31:11 UTC 2013


#12133: get_field_id() and get_field_name() break when passed a name in array
format
-------------------------+-----------------------------
 Reporter:  johnbillion  |       Owner:  azaozz
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Widgets      |     Version:  2.9.1
 Severity:  minor        |  Resolution:
 Keywords:  needs-patch  |
-------------------------+-----------------------------

Comment (by ch1902):

 Not sure if I've done this right, it's my first patch.

 This fixes the array style input names and makes get_field_id() produce
 tidier HTML id attributes. I realise HTML5 id attributes are much more
 flexible in what they accept than HTML4, but I think simpler IDs are
 better for jQuery/CSS selectors.

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


More information about the wp-trac mailing list