Skip to:
Content

BuddyPress.org

Changeset 5480


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

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

Location:
trunk/bp-forums
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-loader.php

    r5474 r5480  
    238238                $bp->bp_options_avatar = bp_core_fetch_avatar( array(
    239239                    'item_id' => bp_displayed_user_id(),
    240                     'type'    => 'thumb'
     240                    'type'    => 'thumb',
     241                    'alt'     => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_displayed_user_fullname() )
    241242                ) );
    242243                $bp->bp_options_title  = $bp->displayed_user->fullname;
  • trunk/bp-forums/bp-forums-template.php

    r5433 r5480  
    484484    function bp_get_the_topic_poster_avatar( $args = '' ) {
    485485        global $forum_template;
    486 
     486       
    487487        $defaults = array(
    488488            'type'   => 'thumb',
    489489            'width'  => false,
    490490            'height' => false,
    491             'alt'    => __( 'Profile picture of %s', 'buddypress' )
     491            'alt'    => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $forum_template->topic->topic_poster ) )
    492492        );
    493493
     
    579579    function bp_get_the_topic_object_avatar( $args = '' ) {
    580580        global $forum_template;
    581 
     581       
    582582        if ( !isset( $forum_template->topic->object_id ) )
    583583            return false;
Note: See TracChangeset for help on using the changeset viewer.