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

WordPress Trac noreply at wordpress.org
Tue Feb 13 11:40:03 UTC 2024


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

Comment (by iaxosikevemed1966):

 It seems like changeset 57156 has caused issues for themes that relied on
 the `update_option('stylesheet', '...')` function. This function is
 commonly used to set a custom stylesheet or template directory.

 The changes made to `get_stylesheet_directory()` and
 `get_template_directory()` likely affect how these functions retrieve the
 directory paths, leading to themes rendering all pages as blank.

 To address this issue temporarily, reverting the changes made to these two
 functions back to their previous state could resolve the problem. This
 would involve undoing the modifications made in changeset 57156 to
 `get_stylesheet_directory()` and `get_template_directory()`.

 Once the functions are reverted, themes that rely on
 `update_option('stylesheet', '...')` should function as expected until a
 more permanent solution can be implemented or until the affected themes
 are updated to be compatible with the changes introduced in changeset
 57156.

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


More information about the wp-trac mailing list