Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/10/2011 05:41:48 PM (13 years ago)
Author:
boonebgorges
Message:

Pass concatenated alt parameter to bp_core_fetch_avatar() throughout core component. References #3806

File:
1 edited

Legend:

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

    r5415 r5479  
    9595
    9696    if ( function_exists( 'bp_core_fetch_avatar' ) )
    97         echo apply_filters( 'bp_comment_author_avatar', bp_core_fetch_avatar( array( 'item_id' => $comment->user_id, 'type' => 'thumb' ) ) );
     97        echo apply_filters( 'bp_comment_author_avatar', bp_core_fetch_avatar( array( 'item_id' => $comment->user_id, 'type' => 'thumb', 'alt' => sprintf( __( 'Avatar of %s', 'buddypress' ), bp_core_get_user_displayname( $comment->user_id ) ) ) ) );
    9898    else if ( function_exists('get_avatar') )
    9999        get_avatar();
     
    104104
    105105    if ( function_exists( 'bp_core_fetch_avatar' ) )
    106         echo apply_filters( 'bp_post_author_avatar', bp_core_fetch_avatar( array( 'item_id' => $post->post_author, 'type' => 'thumb' ) ) );
     106        echo apply_filters( 'bp_post_author_avatar', bp_core_fetch_avatar( array( 'item_id' => $post->post_author, 'type' => 'thumb', 'alt' => sprintf( __( 'Avatar of %s', 'buddypress' ), bp_core_get_user_displayname( $post->post_author ) ) ) ) );
    107107    else if ( function_exists('get_avatar') )
    108108        get_avatar();
Note: See TracChangeset for help on using the changeset viewer.