Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/30/2014 05:36:09 PM (5 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-screens.php

    r8705 r8737  
    635635
    636636    // If the logged-in user doesn't have permission or if avatar uploads are disabled, then stop here
    637     if ( ! bp_is_item_admin() || (int) bp_get_option( 'bp-disable-avatar-uploads' ) )
     637    if ( ! bp_is_item_admin() || (int) bp_get_option( 'bp-disable-avatar-uploads' ) || ! buddypress()->avatar->show_avatars )
    638638        return false;
    639639
Note: See TracChangeset for help on using the changeset viewer.