[wp-trac] [WordPress Trac] #12133: get_field_id() and get_field_name() break when passed a name in array format
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 5 02:17:10 UTC 2010
#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: Unassigned
Component: Widgets | Version: 2.9.1
Severity: minor | Keywords: get_field_name get_field_id widgets
-------------------------+--------------------------------------------------
`get_field_name()` and `get_field_id()` are member functions of the widget
API which generate the names and ids for fields on the widget admin
screen.
A custom widget cannot use an array format name with this function.
For example, 'myfield[]' or 'myfield![3]' is a valid name for an input
field, but this name cannot be passed to `get_field_name()` as the
function will strip right square brackets from the name.
Patch upcoming when I find the time.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12133>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list