[buddypress-trac] [BuddyPress Trac] #8757: Use the right function to find out whether the theme is a block theme or not
buddypress-trac
noreply at wordpress.org
Sat Oct 29 01:58:18 UTC 2022
#8757: Use the right function to find out whether the theme is a block theme or
not
--------------------------+----------------------
Reporter: imath | Owner: imath
Type: defect (bug) | Status: assigned
Priority: high | Milestone: 10.6.0
Component: Core | Version: 10.5.0
Severity: major | Keywords:
--------------------------+----------------------
Just after releasing 10.5.0, some users reported the Kadence theme or
Elementor were not able to load the BuddyPress pages.
It looks like it's possible for a theme to add support for `'block-
templates'` while it is not a Block templates only theme. This is why
[13331] introduced (at least) template loading issues for the Kadence
theme.
Exploring a bit more how WordPress adds the Appearance > Editor menu, it
looks like the right function to use to be sure a Block based theme is
active is:
[https://developer.wordpress.org/reference/functions/wp_is_block_theme/
wp_is_block_theme()].
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8757>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list