diff --git src/bp-blogs/bp-blogs-template.php src/bp-blogs/bp-blogs-template.php
index cf6b7ddfe..c2d6ad32f 100644
|
|
|
function bp_blog_create_nav_item() { |
| 1526 | 1526 | */ |
| 1527 | 1527 | function bp_blog_backcompat_create_nav_item() { |
| 1528 | 1528 | // Bail if Blogs nav item is already used by bp-legacy. |
| 1529 | | if ( has_action( 'bp_blogs_directory_blog_types', 'bp_legacy_theme_blog_create_nav', 999 ) ) { |
| | 1529 | if ( has_action( 'bp_blogs_directory_blog_types', 'bp_legacy_theme_blog_create_nav' ) ) { |
| 1530 | 1530 | return; |
| 1531 | 1531 | } |
| 1532 | 1532 | |
diff --git src/bp-core/bp-core-rest-api.php src/bp-core/bp-core-rest-api.php
index 0f61d0463..2071068f1 100644
|
|
|
defined( 'ABSPATH' ) || exit; |
| 18 | 18 | * @return boolean True if the BP REST plugin is active. False otherwise. |
| 19 | 19 | */ |
| 20 | 20 | function bp_rest_is_plugin_active() { |
| 21 | | return (bool) has_action( 'bp_rest_api_init', 'bp_rest', 5 ); |
| | 21 | return (bool) has_action( 'bp_rest_api_init', 'bp_rest' ); |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | /** |
diff --git src/bp-friends/bp-friends-blocks.php src/bp-friends/bp-friends-blocks.php
index 9bdc0d0e4..47655efa0 100644
|
|
|
function bp_friends_render_friends_block( $attributes = array() ) { |
| 233 | 233 | ); |
| 234 | 234 | |
| 235 | 235 | // Only enqueue common/specific scripts and data once per page load. |
| 236 | | if ( ! has_action( 'wp_footer', 'bp_friends_blocks_add_script_data', 1 ) ) { |
| | 236 | if ( ! has_action( 'wp_footer', 'bp_friends_blocks_add_script_data' ) ) { |
| 237 | 237 | wp_set_script_translations( 'bp-friends-script', 'buddypress' ); |
| 238 | 238 | wp_enqueue_script( 'bp-friends-script' ); |
| 239 | 239 | |
diff --git src/bp-groups/bp-groups-blocks.php src/bp-groups/bp-groups-blocks.php
index d61ca4ea7..bc5201a78 100644
|
|
|
function bp_groups_render_dynamic_groups_block( $attributes = array() ) { |
| 509 | 509 | ); |
| 510 | 510 | |
| 511 | 511 | // Only enqueue common/specific scripts and data once per page load. |
| 512 | | if ( ! has_action( 'wp_footer', 'bp_groups_blocks_add_script_data', 1 ) ) { |
| | 512 | if ( ! has_action( 'wp_footer', 'bp_groups_blocks_add_script_data' ) ) { |
| 513 | 513 | wp_set_script_translations( 'bp-dynamic-groups-script', 'buddypress' ); |
| 514 | 514 | wp_enqueue_script( 'bp-dynamic-groups-script' ); |
| 515 | 515 | |
diff --git src/bp-groups/bp-groups-template.php src/bp-groups/bp-groups-template.php
index 15c70e865..246d9ba36 100644
|
|
|
function bp_group_create_nav_item() { |
| 3777 | 3777 | */ |
| 3778 | 3778 | function bp_group_backcompat_create_nav_item() { |
| 3779 | 3779 | // Bail if the Groups nav item is already used by bp-legacy. |
| 3780 | | if ( has_action( 'bp_groups_directory_group_filter', 'bp_legacy_theme_group_create_nav', 999 ) ) { |
| | 3780 | if ( has_action( 'bp_groups_directory_group_filter', 'bp_legacy_theme_group_create_nav' ) ) { |
| 3781 | 3781 | return; |
| 3782 | 3782 | } |
| 3783 | 3783 | |
diff --git src/bp-members/bp-members-blocks.php src/bp-members/bp-members-blocks.php
index 7ccfc5b66..d84530640 100644
|
|
|
function bp_members_render_dynamic_members_block( $attributes = array() ) { |
| 526 | 526 | ); |
| 527 | 527 | |
| 528 | 528 | // Only enqueue common/specific scripts and data once per page load. |
| 529 | | if ( ! has_action( 'wp_footer', 'bp_members_blocks_add_script_data', 1 ) ) { |
| | 529 | if ( ! has_action( 'wp_footer', 'bp_members_blocks_add_script_data' ) ) { |
| 530 | 530 | wp_set_script_translations( 'bp-dynamic-members-script', 'buddypress' ); |
| 531 | 531 | wp_enqueue_script( 'bp-dynamic-members-script' ); |
| 532 | 532 | |