Skip to:
Content

BuddyPress.org

Opened 18 months ago

Closed 18 months ago

Last modified 18 months ago

#8757 closed defect (bug) (fixed)

Use the right function to find out whether the theme is a block theme or not

Reported by: imath's profile imath Owned by: imath's profile 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)

This ticket was mentioned in PR #32 on buddypress/buddypress by @imath.


18 months ago
#1

  • Keywords has-patch added

Instead of checking whether a theme is supporting block-templates to find out whether the current theme is a Block (templates) based theme, use the wp_is_block_theme()

Trac ticket: https://buddypress.trac.wordpress.org/ticket/8757

#2 @imath
18 months ago

  • Keywords commit added

Just tested the patch with WordPress 5.8 to be 💯 sure. Everything's fine.

#3 @imath
18 months ago

In 13350:

Use the right function to check if active theme is a Block Based theme

[13331] introduced template loading issues for themes supporting block-templates without being Block Based themes.

See #8474
See #8757 (trunk)

#4 @imath
18 months ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 13351:

Use the right function to check if active theme is a Block Based theme

[13331] introduced template loading issues for themes supporting block-templates without being Block Based themes.

See #8474
Fixes #8757 (branch 10.0)

Note: See TracTickets for help on using tickets.