[wp-trac] [WordPress Trac] #60025: Changeset 57156 breaks themes that relied on update_option( 'stylesheet', '...' )
WordPress Trac
noreply at wordpress.org
Sun Dec 10 09:37:24 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):
@sfdam In that version of Sage, line 75 of functions.php is setting a
subdirectory for templates via update_option('template', ...), similar to
what my theme was doing.
A solution for now might be also adding a filter for 'template_directory'
that returns "{theme_dir}/templates" where {theme_dir} is the directory
name of the active theme.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60025#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list