Skip to:
Content

BuddyPress.org

Changeset 13351


Ignore:
Timestamp:
10/29/2022 02:57:50 AM (4 years 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
Fixes #8757 (branch 10.0)

File:
1 edited

Legend:

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

    r13330 r13351  
    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.