Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/12/2010 12:31:49 PM (15 years ago)
Author:
apeatling
Message:

Fixing the use of deprecated template tags in bp-default. Merged the fetching of BP runtime settings into one query to significantly reduce the number of run time database hits. Fixed #1916

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-templatetags.php

    r2635 r2695  
    170170    return $profile_template->has_fields();
    171171}
    172     /* Deprecated: Don't use this as it it too easily confused with site groups */
    173     function bp_group_has_fields() {
    174         return bp_profile_group_has_fields();
    175     }
    176 
    177172
    178173function bp_field_css_class( $class = false ) {
     
    625620    global $bp;
    626621
    627     if ( !(int)get_site_option( 'bp-disable-avatar-uploads' ) )
     622    if ( !(int)$bp->site_options['bp-disable-avatar-uploads'] )
    628623        bp_core_avatar_admin( null, $bp->loggedin_user->domain . $bp->profile->slug . '/change-avatar/', $bp->loggedin_user->domain . $bp->profile->slug . '/delete-avatar/' );
    629624    else
Note: See TracChangeset for help on using the changeset viewer.