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-core/deprecated/2.1.php

    r8683 r8737  
    388388            <li><a href="<?php bp_groups_action_link( 'admin/group-settings' );  ?>"><?php _e( 'Group Settings', 'buddypress' ); ?></a></li>
    389389
    390             <?php if ( !(int)bp_get_option( 'bp-disable-avatar-uploads' ) ) : ?>
     390            <?php if ( !(int)bp_get_option( 'bp-disable-avatar-uploads' ) && $bp->avatar->show_avatars ) : ?>
    391391
    392392                <li><a href="<?php bp_groups_action_link( 'admin/group-avatar' ); ?>"><?php _e( 'Group Profile Photo', 'buddypress' ); ?></a></li>
Note: See TracChangeset for help on using the changeset viewer.