[wp-trac] [WordPress Trac] #60025: Changeset 57156 breaks themes that relied on update_option( 'stylesheet', '...' )

WordPress Trac noreply at wordpress.org
Tue Dec 19 15:25:25 UTC 2023


#60025: Changeset 57156 breaks themes that relied on update_option( 'stylesheet',
'...' )
--------------------------+------------------------
 Reporter:  blindmikey    |       Owner:  joemcgill
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  6.4.3
Component:  Themes        |     Version:  6.4.2
 Severity:  critical      |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------

Comment (by joemcgill):

 Thinking more about this, the most straightforward way of supporting
 themes that want to move their templates to a subdirectory of the theme
 without using the workaround of setting the stylesheet or template option
 and then filtering the return value of the functions that retrieve that
 option would be to do something like #41362 and make the path filterable
 prior to looking for the template rather than trying to juggle the raw
 option and the filtered option when resolving template paths.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60025#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list