Changeset 14188
- Timestamp:
- 12/30/2025 07:24:57 PM (7 weeks ago)
- Location:
- branches/14.0/src/bp-core
- Files:
-
- 2 edited
-
bp-core-catchuri.php (modified) (3 diffs)
-
bp-core-filters.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/14.0/src/bp-core/bp-core-catchuri.php
r13904 r14188 49 49 */ 50 50 function bp_core_enable_root_profiles() { 51 52 51 $retval = false; 53 52 … … 155 154 $wp_query->is_404 = false; 156 155 157 // Check if a BuddyPress component's direc ory is set as homepage.156 // Check if a BuddyPress component's directory is set as homepage. 158 157 $wp_query->is_home = bp_is_directory_homepage( bp_current_component() ); 159 158 … … 174 173 * @param string $located_template Template found to be loaded. 175 174 */ 176 load_template( apply_filters( 'bp_load_template', $located_template ) ); 175 $bp_load_template = apply_filters( 'bp_load_template', $located_template ); 176 177 load_template( $bp_load_template ); 177 178 178 179 /** -
branches/14.0/src/bp-core/bp-core-filters.php
r14182 r14188 72 72 add_filter( 'bp_template_include', 'bp_template_include_theme_supports', 2, 1 ); 73 73 add_filter( 'bp_template_include', 'bp_template_include_theme_compat', 4, 2 ); 74 75 /** 76 * Load block styles on demand in classic themes. 77 * 78 * WordPress 6.9 introduced the `wp_before_include_template` hook as part of `template-loader.php` template 79 * to enable output buffering for block style hoisting. 80 * 81 * Since BuddyPress bypasses `template-loader.php` when loading templates, we need to 82 * integrate this optimization, by hooking it directly. 83 * 84 * @todo Remove this once we support templates using the template-loader.php. 85 * 86 * @since 14.5.0 87 * 88 * @link https://buddypress.trac.wordpress.org/ticket/9309 89 * @link https://core.trac.wordpress.org/ticket/64099 90 */ 91 add_action( 'bp_core_pre_load_template', 'wp_start_template_enhancement_output_buffer', 1000 ); // Late priority to let `wp_template_enhancement_output_buffer` filters and `wp_finalized_template_enhancement_output_buffer` actions be registered. 74 92 75 93 // Filter BuddyPress template locations.
Note: See TracChangeset
for help on using the changeset viewer.