[wp-trac] [WordPress Trac] #43228: register_theme_directory() needs to delete the `theme_roots` transient
WordPress Trac
noreply at wordpress.org
Sun Feb 25 18:18:58 UTC 2018
#43228: register_theme_directory() needs to delete the `theme_roots` transient
--------------------------------------+------------------------------
Reporter: johnbillion | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Changes (by soulseekah):
* keywords: needs-unit-tests has-patch => has-patch has-unit-tests
Comment:
Why not use `wp_clean_themes_cache()` instead? It gives us the benefit of
regenerating the cache and clearing the theme updates cache in case the
newly added directly contains outdated themes.
Both versions make the tests pass. The test fails without the patches.
Added tests.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43228#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list