[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 00:05:09 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                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  administration
--------------------------------------+------------------------------

Comment (by joehoyle):

 I'm inclined to agree with @johnbillion, this looks like a very nasty hack
 in the first place, and certainly isn't part of the API. It would be nice
 to enable the use of arrays in fields somehow, but supporting this method
 of doing (which is essentially what you asking for) IMO is not a good
 idea. Even if we commit this fix, as it's not part of the API it's
 possible such a fragile think could break again in the future.

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


More information about the wp-trac mailing list