[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 22:04:35 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 pbearne):

 I had a think over lunch and this is better fix as it now check for the
 closing `]` not just any `[` in the string

 A much better test

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


More information about the wp-trac mailing list