Skip to:
Content

BuddyPress.org

Changeset 13331


Ignore:
Timestamp:
09/29/2022 06:54:46 PM (19 months ago)
Author:
imath
Message:

WP FSE Compat: remove the index.php template check

Since WordPress 6.0, having an index.php template file into a Block Theme is no more required, see #WP54272. WordPress 6.1 will introduce a new default Block Theme "Twenty Twenty-Three", the first one without this specific PHP template. Testing BP Theme Compatibility with it revealed dealing with this WP change was forgotten.

To be fully compatible with these "no index.php" Block Themes, let's remove the extra check we used to performed about the index.php theme's template.

Fixes #8474 (trunk)

File:
1 edited

Legend:

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

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