Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/02/2015 01:01:03 AM (9 years ago)
Author:
boonebgorges
Message:

Allow group avatars to be disabled.

Props xgz, boonebgorges, imath, hnla.
Fixes #4677.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-avatars.php

    r9827 r9828  
    18141814        // Group creation
    18151815        if ( bp_is_group_create() && bp_is_group_creation_step( 'group-avatar' ) && 'crop-image' !== bp_get_avatar_admin_step() ) {
    1816             $retval = ! bp_core_get_root_option( 'bp-disable-avatar-uploads' );
     1816            $retval = ! bp_disable_group_avatar_uploads();
    18171817
    18181818        // Group Manage
    18191819        } elseif ( bp_is_group_admin_page() && bp_is_group_admin_screen( 'group-avatar' ) && 'crop-image' !== bp_get_avatar_admin_step() ) {
    1820             $retval = ! bp_core_get_root_option( 'bp-disable-avatar-uploads' );
     1820            $retval = ! bp_disable_group_avatar_uploads();
    18211821        }
    18221822    }
Note: See TracChangeset for help on using the changeset viewer.