[wp-trac] [WordPress Trac] #45825: Use of same loop variable in inner foreach loop can be error-prone

WordPress Trac noreply at wordpress.org
Mon Apr 15 06:24:06 UTC 2019


#45825: Use of same loop variable in inner foreach loop can be error-prone
------------------------------+-------------------------------
 Reporter:  subrataemfluence  |       Owner:  (none)
     Type:  enhancement       |      Status:  new
 Priority:  low               |   Milestone:  Future Release
Component:  Upgrade/Install   |     Version:  5.0.2
 Severity:  trivial           |  Resolution:
 Keywords:  has-patch         |     Focuses:  coding-standards
------------------------------+-------------------------------
Changes (by subrataemfluence):

 * type:  defect (bug) => enhancement


Comment:

 @madivad Thank you for your reply. I am sorry for the typo! I should have
 been more careful about it. What you said absolutely right, i.e. inner
 loop variable cannot alter the value of outer loop. I created this ticket
 only for clarity as you have correctly pointed out.

 Regarding editing the actual post, I have no option to do it?!

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


More information about the wp-trac mailing list