Commit 3528598
committed
General: Memoize the return value in
Cache the unmodified `$wp_version` value as a static. This retains the current behaviour during the upgrade process `$wp_version` referencing the version of WordPress being upgraded from.
Follow up to [58848].
Props Cybr, debarghyabanerjee, mukesh27, costdev, SergeyBiryukov, TobiasBg, desrosj, azaozz.
Fixes #61782.
git-svn-id: https://develop.svn.wordpress.org/trunk@59192 602fd350-edb4-49c9-b593-d223f7449a82wp_get_wp_version().1 parent ef96fb3 commit 3528598
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8833 | 8833 | | |
8834 | 8834 | | |
8835 | 8835 | | |
8836 | | - | |
| 8836 | + | |
| 8837 | + | |
| 8838 | + | |
| 8839 | + | |
| 8840 | + | |
8837 | 8841 | | |
8838 | 8842 | | |
8839 | 8843 | | |
| |||
0 commit comments