[wp-trac] [WordPress Trac] #57928: Prevent loading wp-content/themes/functions.php when 'stylesheet' option is empty
WordPress Trac
noreply at wordpress.org
Wed Jun 7 20:27:32 UTC 2023
#57928: Prevent loading wp-content/themes/functions.php when 'stylesheet' option is
empty
------------------------------------+------------------------------
Reporter: danielbachhuber | Owner: danielbachhuber
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.3
Component: Bootstrap/Load | Version:
Severity: normal | Resolution: fixed
Keywords: dev-feedback has-patch | Focuses:
------------------------------------+------------------------------
Comment (by danielbachhuber):
In [changeset:"55891" 55891]:
{{{
#!CommitTicketReference repository="" revision="55891"
Bootstrap/Load: Revert [55890].
As it turns out, WP-CLI *also* doesn't `define( 'WP_USE_THEMES', true );`,
which means an active theme's `functions.php` isn't loaded by default and
causes a backwards compatibility break.
See #57928.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57928#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list