Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Coding Standards: Break the
$path
reference after a foreach
loop …
…in `block_editor_rest_api_preload()`. 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. git-svn-id: https://develop.svn.wordpress.org/trunk@52322 602fd350-edb4-49c9-b593-d223f7449a82
- Loading branch information