[wp-trac] [WordPress Trac] #60025: Changeset 57156 breaks themes that relied on update_option( 'stylesheet', '...' )
WordPress Trac
noreply at wordpress.org
Wed Dec 6 23:22:55 UTC 2023
#60025: Changeset 57156 breaks themes that relied on update_option( 'stylesheet',
'...' )
--------------------------+------------------------------
Reporter: blindmikey | Owner: joemcgill
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 6.4.2
Severity: critical | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------------
Comment (by blindmikey):
Issue came about because the theme was storing templates in a subdirectory
within the theme, and then setting the wp_option "stylesheet" to
"{theme_dir}/templates" where {theme_dir} is the directory name of the
child theme. This worked fine in 6.4.0, and in releases prior, but stopped
working in 6.4.2 - causing every page to render blank.
The fix for us moving forward is to use the 'stylesheet_directory' filter
to set the stylesheet directory to "{theme_dir}/templates".
However this update will effect any theme that's updating the stylesheet
directory via updating the "stylesheet" wp_option.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60025#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list