diff --git src/bp-templates/bp-legacy/buddypress/members/single/profile/edit.php src/bp-templates/bp-legacy/buddypress/members/single/profile/edit.php
index a20c079..4e368db 100644
|
|
if ( bp_has_profile( 'profile_group_id=' . bp_get_current_profile_group_id() ) ) |
9 | 9 | |
10 | 10 | <h4><?php printf( __( "Editing '%s' Profile Group", "buddypress" ), bp_get_the_profile_group_name() ); ?></h4> |
11 | 11 | |
12 | | <ul class="button-nav"> |
| 12 | <?php if ( bp_profile_has_multiple_group_tabs() ) : ?> |
13 | 13 | |
14 | | <?php bp_profile_group_tabs(); ?> |
| 14 | <ul class="button-nav"> |
15 | 15 | |
16 | | </ul> |
| 16 | <?php bp_profile_group_tabs(); ?> |
| 17 | |
| 18 | </ul> |
| 19 | |
| 20 | <?php endif ;?> |
17 | 21 | |
18 | 22 | <div class="clear"></div> |
19 | 23 | |
diff --git src/bp-xprofile/bp-xprofile-template.php src/bp-xprofile/bp-xprofile-template.php
index 2466104..ec5cc8b 100644
|
|
function bp_profile_field_data( $args = '' ) { |
589 | 589 | return apply_filters( 'bp_get_profile_field_data', xprofile_get_field_data( $field, $user_id ) ); |
590 | 590 | } |
591 | 591 | |
| 592 | function bp_profile_has_multiple_group_tabs() { |
| 593 | global $profile_template; |
| 594 | return (bool) apply_filters( 'bp_profile_has_multiple_group_tabs', $profile_template->group_count > 1 ); |
| 595 | } |
| 596 | |
592 | 597 | function bp_profile_group_tabs() { |
593 | 598 | global $bp, $group_name; |
594 | 599 | |