Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/24/2011 08:57:50 AM (15 years ago)
Author:
djpaul
Message:

Add new filter to bp_get_blog_avatar(). Fixes #3160

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-template.php

    r4211 r4275  
    263263                 * Right now you can use a filter with the ID of the blog to change it if you wish.
    264264                 * By default it will return the avatar for the primary blog admin.
     265                 *
     266                 * This filter is deprecated as of BuddyPress 1.3 and may be removed in a future version.
     267                 * Use the 'bp_get_blog_avatar' filter instead.
    265268                 */
    266                 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 ) ) );
     269                $avatar = 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 ) ) );
     270
     271                return apply_filters( 'bp_get_blog_avatar', $avatar, $blogs_template->blog->blog_id, 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 ) );
    267272        }
    268273
Note: See TracChangeset for help on using the changeset viewer.