[wp-trac] [WordPress Trac] #35023: get_field_name() returns a bad field name if you pass it "display][avatar_size"

WordPress Trac noreply at wordpress.org
Sun Dec 13 07:36:49 UTC 2015


#35023: get_field_name() returns a bad field name if you pass it
"display][avatar_size"
-------------------------------------------------+-------------------------
 Reporter:  pbearne                              |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  4.4.1
Component:  Widgets                              |     Version:  4.4
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests 2nd-        |     Focuses:
  opinion                                        |  administration
-------------------------------------------------+-------------------------
Description changed by SergeyBiryukov:

Old description:

> Bug introduced in https://core.trac.wordpress.org/changeset/34780 from
> ticket https://core.trac.wordpress.org/ticket/12133
>
> An old hack to get this function to work with arrays was to pass a string
> in the form of `display][avatar_size` doing this to the new code return
> `widget-foo[2][posttypes]][name` as the string not `widget-
> foo[2][posttypes][name]` as expected

New description:

 Bug introduced in [34780] from ticket #12133.

 An old hack to get this function to work with arrays was to pass a string
 in the form of `display][avatar_size` doing this to the new code return
 `widget-foo[2][posttypes]][name` as the string not `widget-
 foo[2][posttypes][name]` as expected

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35023#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list