[wp-trac] [WordPress Trac] #63062: Parent theme incorrectly not getting resolved in WordPress 6.8-beta1
WordPress Trac
noreply at wordpress.org
Tue Mar 11 12:31:23 UTC 2025
#63062: Parent theme incorrectly not getting resolved in WordPress 6.8-beta1
-------------------------------------------------+-------------------------
Reporter: fabiankaegy | Owner: joemcgill
Type: defect (bug) | Status: closed
Priority: high | Milestone: 6.8
Component: Themes | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch needs-unit-tests needs- | Focuses:
testing has-testing-info has-screenshots |
-------------------------------------------------+-------------------------
Changes (by joemcgill):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"59968" 59968]:
{{{
#!CommitTicketReference repository="" revision="59968"
Themes: Fix resolution of parent themes.
This fixes an issue introduced in [59885] whereby calling
`WP_Theme:is_block_theme()` before themes are set up resulted in the
parent theme to not be resolved. To address this, post support for editor
default-mode has been moved to a standalone callback,
`wp_set_editor_default_mode()`, which is called on the `after_setup_theme`
hook. In addition, if `WP_Theme::is_block_theme` is called too early, a
`_doing_it_wrong()` error will now be thrown.
Props fabiankaegy, joemcgill, peterwilsoncc, jorbin, krupajnanda,
riddhidave, ugyensupport, navi161, manojmaharrshi, Ankit K Gupta, narenin,
shailu25, pooja1210.
Fixes #63062.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63062#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list