Skip to:
Content

BuddyPress.org

Ticket #6519: bp-blogs-template.php.patch

File bp-blogs-template.php.patch, 1.4 KB (added by lenasterg, 11 years ago)
  • src/bp-blogs/bp-blogs-template.php

     
    533533         *     @type string $alt Default: 'Profile picture of site author
    534534         *           [user name]'.
    535535         *     @type string $class Default: 'avatar'.
     536         *     @type string $title Default: 'Profile picture of site author
     537         *           [user name]'.
    536538         *     @type string $type Default: 'full'.
    537539         *     @type int|bool $width Default: false.
    538540         *     @type int|bool $height Default: false.
     
    557559                        'height'  => false,
    558560                        'class'   => 'avatar',
    559561                        'id'      => false,
     562                        'title'   => sprintf( __( 'Profile picture of site author %s', 'buddypress' ), bp_core_get_user_displayname( $blogs_template->blog->admin_user_id ) ),
    560563                        'alt'     => sprintf( __( 'Profile picture of site author %s', 'buddypress' ), bp_core_get_user_displayname( $blogs_template->blog->admin_user_id ) ),
    561564                        'no_grav' => true,
    562565                ) );
     
    564567                // Fetch the avatar
    565568                $avatar = bp_core_fetch_avatar( array(
    566569                        'item_id'    => $blogs_template->blog->admin_user_id,
    567                         'title'      => $blogs_template->blog->admin_user_email,
     570                        'title' => $r['title'],
    568571                        //'avatar_dir' => 'blog-avatars',
    569572                        //'object'     => 'blog',
    570573                        'type'       => $r['type'],