Skip to:
Content

BuddyPress.org

Changeset 6936


Ignore:
Timestamp:
04/21/2013 05:48:28 PM (9 years ago)
Author:
boonebgorges
Message:

When populating group_creation_steps, use cached disable-avatar setting

Calling bp_get_option() to retrieve a value that has already been cached in
BP's main bootstrap can cause unreasonable overhead on multisite setups.

Fixes #4914

Props wpdennis

File:
1 edited

Legend:

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

    r6811 r6936  
    306306
    307307        // If avatar uploads are not disabled, add avatar option
    308         if ( !(int)bp_get_option( 'bp-disable-avatar-uploads' ) ) {
     308        if ( ! (int) buddypress()->site_options['bp-disable-avatar-uploads'] ) {
    309309            $this->group_creation_steps['group-avatar'] = array(
    310310                'name'     => __( 'Avatar',   'buddypress' ),
Note: See TracChangeset for help on using the changeset viewer.