Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/30/2014 05:36:09 PM (7 years ago)
Author:
imath
Message:

Disable Group avatar feature if WordPress show avatars setting is disabled

In WordPress Administration Discussion settings, if the option "Show Avatars" is not on, we need to disable the Group Avatar feature to avoid some notices and be consistent with the discussion option.

Fixes #5345
See #5494

File:
1 edited

Legend:

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

    r8705 r8737  
    254254
    255255        // If avatar uploads are not disabled, add avatar option
    256         if ( ! (int) buddypress()->site_options['bp-disable-avatar-uploads'] ) {
     256        if ( ! (int) $bp->site_options['bp-disable-avatar-uploads'] && $bp->avatar->show_avatars ) {
    257257            $this->group_creation_steps['group-avatar'] = array(
    258258                'name'     => _x( 'Profile Photo', 'Group screen nav', 'buddypress' ),
Note: See TracChangeset for help on using the changeset viewer.