diff --git src/bp-friends/bp-friends-blocks.php src/bp-friends/bp-friends-blocks.php
index 171b603e7..9bdc0d0e4 100644
|
|
function bp_friends_render_friends_block( $attributes = array() ) { |
210 | 210 | ); |
211 | 211 | } |
212 | 212 | } |
213 | | } else { |
| 213 | } elseif ( defined( 'WP_USE_THEMES' ) ) { |
214 | 214 | // Get corresponding friends. |
215 | 215 | $path = sprintf( |
216 | 216 | '/%1$s/%2$s/%3$s', |
diff --git src/bp-groups/bp-groups-blocks.php src/bp-groups/bp-groups-blocks.php
index 34ab0669b..d61ca4ea7 100644
|
|
function bp_groups_render_dynamic_groups_block( $attributes = array() ) { |
486 | 486 | ); |
487 | 487 | } |
488 | 488 | } |
489 | | } else { |
| 489 | } elseif ( defined( 'WP_USE_THEMES' ) ) { |
490 | 490 | // Get corresponding members. |
491 | 491 | $path = sprintf( |
492 | 492 | '/%1$s/%2$s/%3$s', |
diff --git src/bp-members/bp-members-blocks.php src/bp-members/bp-members-blocks.php
index 5aebb4857..7ccfc5b66 100644
|
|
function bp_members_render_dynamic_members_block( $attributes = array() ) { |
503 | 503 | ); |
504 | 504 | } |
505 | 505 | } |
506 | | } else { |
| 506 | } elseif ( defined( 'WP_USE_THEMES' ) ) { |
507 | 507 | // Get corresponding members. |
508 | 508 | $path = sprintf( |
509 | 509 | '/%1$s/%2$s/%3$s', |