mirror of
git://develop.git.wordpress.org/
synced 2025-03-24 05:49:49 +01:00
Improves caching of the `get_calendar()` function by: * fixing incorrect cache collisions for different `initial` `post_type` and week values, and, * ensuring parameter equivalents generate the same cache key, ie passing the same values in a different order. Improves tests for the function by: * navigating to February 2025 in test set up to ensure the correct calendar month is displayed, * adding messages for tests with multiple assertions, * improving the tests for the calendar captions by wrapping the expected value in the HTML tag, * adding dedicated test for the different `initial` parameter, * ensuring caches do not collide for different parameters, and, * ensuring caches do collide for equivalent parameters. Follow up to r4522, r59908, r59909, r59917 (reverted), r59918 (reverted), r59930. Props peterwilsoncc, jorbin, audrasjb. Fixes #34093. git-svn-id: https://develop.svn.wordpress.org/trunk@59939 602fd350-edb4-49c9-b593-d223f7449a82