#8757 closed defect (bug) (fixed)
Use the right function to find out whether the theme is a block theme or not
Reported by: | imath | Owned by: | imath |
---|---|---|---|
Milestone: | 10.6.0 | Priority: | high |
Severity: | major | Version: | 10.5.0 |
Component: | Core | Keywords: | has-patch commit |
Cc: |
Description
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: wp_is_block_theme().
Change History (5)
Note: See
TracTickets for help on using
tickets.
Instead of checking whether a theme is supporting
block-templates
to find out whether the current theme is a Block (templates) based theme, use thewp_is_block_theme()
Trac ticket: https://buddypress.trac.wordpress.org/ticket/8757