Skip to:
Content

BuddyPress.org

Changeset 13350


Ignore:
Timestamp:
10/29/2022 02:39:02 AM (18 months ago)
Author:
imath
Message:

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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-template-loader.php

    r13331 r13350  
    465465     * BuddyPress then needs to use the WordPress template canvas to retrieve the community content.
    466466     */
    467     if ( current_theme_supports( 'block-templates' ) ) {
     467    if ( bp_is_running_wp( '5.9.0', '>=' ) && wp_is_block_theme() ) {
    468468        $template = ABSPATH . WPINC . '/template-canvas.php';
    469469    }
Note: See TracChangeset for help on using the changeset viewer.