Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/02/2015 01:01:03 AM (10 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/admin/bp-core-admin-settings.php

    r9819 r9828  
    180180    <p class="description"><?php _e( 'Administrators can always create groups, regardless of this setting.', 'buddypress' ); ?></p>
    181181
     182<?php
     183}
     184
     185/**
     186 * 'Enable group avatars' field markup.
     187 *
     188 * @since BuddyPress (2.3.0)
     189 */
     190function bp_admin_setting_callback_group_avatar_uploads() {
     191?>
     192    <input id="bp-disable-group-avatar-uploads" name="bp-disable-group-avatar-uploads" type="checkbox" value="1" <?php checked( ! bp_disable_group_avatar_uploads() ); ?> />
     193    <label for="bp-disable-group-avatar-uploads"><?php _e( 'Allow customizable avatars for groups', 'buddypress' ); ?></label>
    182194<?php
    183195}
     
    281293        }
    282294
    283         // Some legacy options are not registered with the Settings API
     295        // Some legacy options are not registered with the Settings API, or are reversed in the UI.
    284296        $legacy_options = array(
    285297            'bp-disable-account-deletion',
    286298            'bp-disable-avatar-uploads',
     299            'bp-disable-group-avatar-uploads',
    287300            'bp_disable_blogforum_comments',
    288301            'bp-disable-profile-sync',
Note: See TracChangeset for help on using the changeset viewer.