Changeset 7425
- Timestamp:
- 09/04/2026 09:28:44 AM (2 weeks ago)
- Location:
- branches/2.6
- Files:
-
- 24 added
- 2 edited
-
src/includes/core/template-loader.php (modified) (1 diff)
-
src/includes/core/theme-compat.php (modified) (2 diffs)
-
tests/phpunit/data (added)
-
tests/phpunit/data/themes (added)
-
tests/phpunit/data/themes/bbp-block-child-theme (added)
-
tests/phpunit/data/themes/bbp-block-child-theme/style.css (added)
-
tests/phpunit/data/themes/bbp-block-theme (added)
-
tests/phpunit/data/themes/bbp-block-theme/style.css (added)
-
tests/phpunit/data/themes/bbp-block-theme/templates (added)
-
tests/phpunit/data/themes/bbp-block-theme/templates/index.html (added)
-
tests/phpunit/data/themes/bbp-block-theme/theme.json (added)
-
tests/phpunit/data/themes/bbp-classic-child-theme (added)
-
tests/phpunit/data/themes/bbp-classic-child-theme/style.css (added)
-
tests/phpunit/data/themes/bbp-classic-hybrid-theme (added)
-
tests/phpunit/data/themes/bbp-classic-hybrid-theme/index.php (added)
-
tests/phpunit/data/themes/bbp-classic-hybrid-theme/style.css (added)
-
tests/phpunit/data/themes/bbp-classic-hybrid-theme/theme.json (added)
-
tests/phpunit/data/themes/bbp-classic-theme (added)
-
tests/phpunit/data/themes/bbp-classic-theme-json (added)
-
tests/phpunit/data/themes/bbp-classic-theme-json/bbpress.php (added)
-
tests/phpunit/data/themes/bbp-classic-theme-json/index.php (added)
-
tests/phpunit/data/themes/bbp-classic-theme-json/style.css (added)
-
tests/phpunit/data/themes/bbp-classic-theme-json/theme.json (added)
-
tests/phpunit/data/themes/bbp-classic-theme/index.php (added)
-
tests/phpunit/data/themes/bbp-classic-theme/style.css (added)
-
tests/phpunit/testcases/core/theme-compat.php (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/src/includes/core/template-loader.php
r6573 r7425 471 471 return bbp_get_query_template( 'bbpress', $templates ); 472 472 } 473 474 /** 475 * Get the theme canvas template, used for Block Themes. 476 * 477 * @since 2.6.16 bbPress 478 * 479 * @return string Path to canvas file. 480 */ 481 function bbp_get_theme_canvas_template() { 482 483 // Default WordPress Canvas 484 $template = ABSPATH . WPINC . '/template-canvas.php'; 485 486 // Filter & return 487 return apply_filters( 'bbp_get_theme_canvas_template', $template ); 488 } -
branches/2.6/src/includes/core/theme-compat.php
r7328 r7425 478 478 * 479 479 * @since 2.0.0 bbPress (r3032) 480 * @since 2.6.16 bbPress Added support for Block Themes 480 481 * 481 482 * @param string $template … … 844 845 bbp_remove_all_filters( 'the_content' ); 845 846 846 $template = bbp_get_theme_compat_templates(); 847 // Block themes 848 if ( wp_is_block_theme() ) { 849 $template = bbp_get_theme_canvas_template(); 850 851 // Non-block themes 852 } else { 853 $template = bbp_get_theme_compat_templates(); 854 } 847 855 } 848 856
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)