Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/29/2011 11:07:41 PM (13 years ago)
Author:
boonebgorges
Message:

Respect 'disable avatar upload' option within the Groups component. Fixes #3520. Props r-a-y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-loader.php

    r4961 r5052  
    189189                'name'       => __( 'Settings', 'buddypress' ),
    190190                'position'   => 10
    191             ),
    192             'group-avatar'   => array(
    193                 'name'       => __( 'Avatar',   'buddypress' ),
    194                 'position'   => 20 ),
     191            )
    195192        ) );
     193
     194        // If avatar uploads are not disabled, add avatar option
     195        if ( !(int)bp_get_option( 'bp-disable-avatar-uploads' ) ) {
     196            $this->group_creation_steps['group-avatar'] = array(
     197                'name'     => __( 'Avatar',   'buddypress' ),
     198                'position' => 20
     199            );
     200        }
    196201
    197202        // If friends component is active, add invitations
Note: See TracChangeset for help on using the changeset viewer.