[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
Fri Dec 11 20:05:50 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:  Awaiting Review
Component:  Widgets         |    Version:  4.4
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 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

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


More information about the wp-trac mailing list