[wp-trac] [WordPress Trac] #57928: Prevent loading wp-content/themes/functions.php when 'stylesheet' option is empty

WordPress Trac noreply at wordpress.org
Thu Jun 8 12:50:23 UTC 2023


#57928: Prevent loading wp-content/themes/functions.php when 'stylesheet' option is
empty
------------------------------------+------------------------------
 Reporter:  danielbachhuber         |       Owner:  danielbachhuber
     Type:  enhancement             |      Status:  reopened
 Priority:  normal                  |   Milestone:  6.3
Component:  Bootstrap/Load          |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |     Focuses:
------------------------------------+------------------------------

Comment (by jorbin):

 Thinking about this a bit, I wonder if the bailing early should be if
 `TEMPLATEPATH` and `STYLESHEETPATH` are equal to `get_theme_root()`.

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


More information about the wp-trac mailing list