Changes between Initial Version and Version 2 of Ticket #58758
- Timestamp:
- 07/07/2023 05:42:43 PM (22 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #58758
- Property Keywords has-patch added
-
Ticket #58758 – Description
initial v2 4 4 5 5 This is because core unit tests often switch themes, resulting in a stale cache. However, sites in the wild also can also dynamically switch themes, and plugins may switch themes during their own unit tests. It seems this check is not ideal and is masking a more fundamental problem: the cached value is not invalidated when the theme is dynamically switched. 6 7 A simple fix is to invalidate the cache whenever `get_stylesheet_directory()` or `get_template_directory()` change.