[wp-trac] [WordPress Trac] #63062: Parent theme incorrectly not getting resolved in WordPress 6.8-beta1
WordPress Trac
noreply at wordpress.org
Wed Mar 12 08:13:45 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 |
-------------------------------------------------+-------------------------
Comment (by wildworks):
> In addition, if `WP_Theme::is_block_theme` is called too early, a
`_doing_it_wrong()` error will now be thrown.
[https://github.com/WordPress/wordpress-
develop/blob/7475126055ddf7b9fd6c303d2468676926b762f0/src/wp-includes
/class-wp-theme.php#L1581 This early return] might cause problems if you
have a theme or plugin that is calling `WP_Theme::is_block_theme` too
early.
For example, if the following plugin is enabled:
{{{
<?php
/**
* Plugin Name: Block Theme Test
*/
wp_is_block_theme();
}}}
At this time, the site editor appears to display a black screen.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63062#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list