[wp-trac] [WordPress Trac] #47409: variable in foreach is used without validation.

WordPress Trac noreply at wordpress.org
Wed May 29 09:14:39 UTC 2019


#47409: variable in foreach is used without validation.
---------------------------+-----------------------------
 Reporter:  priyankkpatel  |       Owner:  (none)
     Type:  enhancement    |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Widgets        |     Version:  5.2.1
 Severity:  normal         |  Resolution:  wontfix
 Keywords:  has-patch      |     Focuses:  administration
---------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  new => closed
 * resolution:   => wontfix
 * focuses:   => administration
 * component:  General => Widgets
 * milestone:  Awaiting Review =>


Comment:

 Thanks for the patch! However, `$theme_sidebars` is defined as an array
 [source:tags/5.2.1/src/wp-admin/widgets.php?marks=451#L449 a few lines
 above], so there's no need for additional checks here.

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


More information about the wp-trac mailing list