When using a `foreach` loop with a value assigned by reference, the variable continues to point to the last array element even after the loop, so it is recommended to destroy it by `unset()` to avoid unexpected behavior later on. See [https://www.php.net/manual/en/control-structures.foreach.php PHP Manual: foreach]. Follow-up to [52312], [52313]. Props TobiasBg. See #54558. Built from https://develop.svn.wordpress.org/trunk@52322 git-svn-id: http://core.svn.wordpress.org/trunk@51914 1a063a9b-81f0-0310-95a4-ce76da25c4cd
18 KiB
18 KiB