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-blogs/bp-blogs-templatetags.php

    r2678 r2695  
    206206        return apply_filters( 'bp_get_blog_avatar_' . $blogs_template->blog->blog_id, bp_core_fetch_avatar( array( 'item_id' => $blogs_template->blog->admin_user_id, 'type' => $type, 'alt' => $alt, 'width' => $width, 'height' => $height, 'class' => $class, 'email' => $blogs_template->blog->admin_user_email ) ) );
    207207    }
    208         /* DEPRECATED */
    209         function bp_blog_avatar_thumb() { echo bp_get_blog_avatar('type=thumb'); }
    210         function bp_blog_avatar_mini() { echo bp_get_blog_avatar_mini('type=thumb&width=30&height=30'); }
    211208
    212209function bp_blog_permalink() {
     
    302299
    303300function bp_blog_signup_enabled() {
    304     $active_signup = get_site_option( 'registration' );
     301    global $bp;
     302
     303    $active_signup = $bp->site_options['registration'];
    305304
    306305    if ( !$active_signup )
Note: See TracChangeset for help on using the changeset viewer.