Changeset 13145 for trunk/src/bp-core/bp-core-template-loader.php
- Timestamp:
- 11/13/2021 02:33:37 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-template-loader.php
r13002 r13145 454 454 $templates = apply_filters( "bp_get_{$type}_template", $templates ); 455 455 456 // Filter possible templates, try to match one, and set any BuddyPress theme 457 // compat properties so they can be cross-checked later. 456 /* 457 * Filter possible templates, try to match one, and set any BuddyPress theme 458 * compat properties so they can be cross-checked later. 459 */ 458 460 $templates = bp_set_theme_compat_templates( $templates ); 459 461 $template = bp_locate_template( $templates ); 460 $template = bp_set_theme_compat_template( $template ); 462 463 /* 464 * The current theme is using the WordPress Full Site Editing feature. 465 * BuddyPress then needs to use the WordPress template canvas to retrieve the community content. 466 */ 467 if ( current_theme_supports( 'block-templates' ) && $template === get_theme_file_path( 'index.php' ) ) { 468 $template = ABSPATH . WPINC . '/template-canvas.php'; 469 } 470 471 $template = bp_set_theme_compat_template( $template ); 461 472 462 473 /**
Note: See TracChangeset
for help on using the changeset viewer.