Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/01/2024 10:56:10 AM (18 months ago)
Author:
imath
Message:

Initialize the support of BP block only Themes

We are now using the locate_block_template() function to get block templates of BuddyPress content when active theme is supporting buddypress and is only using blocks.

For an example of this new kind of BP Themes, you can check the WIP we've started here: https://github.com/buddypress/buddyvibes

Here's a nice way to start 2024! Happy new year to everyone 🥂

Fixes #8900
Closes https://github.com/buddypress/buddypress/pull/104

M src/bp-core/bp-core-actions.php
M src/bp-core/bp-core-catchuri.php
M src/bp-core/bp-core-template-loader.php
M src/bp-core/bp-core-theme-compatibility.php

File:
1 edited

Legend:

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

    r13490 r13686  
    165165 */
    166166add_action( 'bp_after_setup_theme', 'bp_check_theme_template_pack_dependency',   -10 );
     167add_action( 'bp_after_setup_theme', 'bp_set_block_theme_compat',                  0  );
    167168add_action( 'bp_after_setup_theme', 'bp_load_theme_functions',                    1  );
    168169add_action( 'bp_after_setup_theme', 'bp_register_theme_compat_default_features',  10 );
Note: See TracChangeset for help on using the changeset viewer.