Skip to:
Content

BuddyPress.org

Changeset 9646


Ignore:
Timestamp:
03/25/2015 07:54:28 PM (9 years ago)
Author:
boonebgorges
Message:

Bug fixes for bp_group_status_message().

  • The $group parameter passed to the function should be obeyed when doing invite/request checks. Note that this requires that the group objects have been generated with 'populate_extras', or the is_invited etc checks will result in false negatives.
  • Insert missing break that was causing all the hidden group message to be shown for private groups.

Fixes #6319.

Location:
trunk
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-template.php

    r9541 r9646  
    34123412            // Private group
    34133413            case 'private' :
    3414                 if ( ! bp_group_has_requested_membership() ) {
     3414                if ( ! bp_group_has_requested_membership( $group ) ) {
    34153415                    if ( is_user_logged_in() ) {
    3416                         if ( bp_group_is_invited() ) {
     3416                        if ( bp_group_is_invited( $group ) ) {
    34173417                            $message = __( 'You must accept your pending invitation before you can access this private group.', 'buddypress' );
    34183418                        } else {
     
    34263426                }
    34273427
     3428                break;
     3429
    34283430            // Hidden group
    34293431            case 'hidden' :
    34303432            default :
    34313433                $message = __( 'This is a hidden group and only invited members can join.', 'buddypress' );
     3434                break;
    34323435        }
    34333436    }
Note: See TracChangeset for help on using the changeset viewer.