mirror of
git://develop.git.wordpress.org/
synced 2025-04-09 06:32:28 +02:00
In many scenarios array functions are more expensive than using simpler `for` or `foreach` loops. This changeset results in roughly 4% faster `wp_head` execution time for both block themes and classic themes. While this may seem like a small win, it is a worthwhile enhancement and only one part of several other little performance tweaks which are being worked on to improve performance of `theme.json` parsing further. Props aristath, desrosj, jrf, spacedmonkey. Merges [54804] to the 6.1 branch. Fixes #56974. See #57067. git-svn-id: https://develop.svn.wordpress.org/branches/6.1@54805 602fd350-edb4-49c9-b593-d223f7449a82