Skip to:
Content

BuddyPress.org

Changeset 5545


Ignore:
Timestamp:
12/13/2011 07:09:26 PM (13 years ago)
Author:
boonebgorges
Message:

Don't show the Demote to Member button on group admin when the group only has one admin.
Fixes #3711
Props aliso

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/groups/single/admin.php

    r5503 r5545  
    186186                <h5>
    187187                    <a href="<?php bp_member_permalink(); ?>"> <?php bp_member_name(); ?></a>
     188                    <?php if ( count( bp_group_admin_ids( false, 'array' ) ) > 1 ) : ?>
    188189                    <span class="small">
    189190                        <a class="button confirm admin-demote-to-member" href="<?php bp_group_member_demote_link( bp_get_member_user_id() ) ?>"><?php _e( 'Demote to Member', 'buddypress' ) ?></a>
    190191                    </span>         
     192                    <?php endif; ?>
    191193                </h5>       
    192194            </li>
Note: See TracChangeset for help on using the changeset viewer.