Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/01/2011 06:26:18 PM (14 years ago)
Author:
djpaul
Message:

Improves avatars' HTML alt and title tags. Fixes #2606.

File:
1 edited

Legend:

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

    r3631 r3635  
    322322            'class' => 'avatar',
    323323            'id' => false,
    324             'alt' => __( 'Member avatar', 'buddypress' )
     324            'alt' => __( 'Profile picture of %s', 'buddypress' )
    325325        );
    326326
     
    671671            'width'     => false,
    672672            'height'    => false,
    673             'html'      => true
     673            'html'      => true,
     674            'alt' => __( 'Profile picture of %s', 'buddypress' )
    674675        );
    675676
     
    677678        extract( $r, EXTR_SKIP );
    678679
    679         return apply_filters( 'bp_get_loggedin_user_avatar', bp_core_fetch_avatar( array( 'item_id' => $bp->loggedin_user->id, 'type' => $type, 'width' => $width, 'height' => $height, 'html' => $html ) ) );
     680        return apply_filters( 'bp_get_loggedin_user_avatar', bp_core_fetch_avatar( array( 'item_id' => $bp->loggedin_user->id, 'type' => $type, 'width' => $width, 'height' => $height, 'html' => $html, 'alt' => $alt ) ) );
    680681    }
    681682
     
    690691            'width'     => false,
    691692            'height'    => false,
    692             'html'      => true
     693            'html'      => true,
     694            'alt' => __( 'Profile picture of %s', 'buddypress' )
    693695        );
    694696
     
    696698        extract( $r, EXTR_SKIP );
    697699
    698         return apply_filters( 'bp_get_displayed_user_avatar', bp_core_fetch_avatar( array( 'item_id' => $bp->displayed_user->id, 'type' => $type, 'width' => $width, 'height' => $height, 'html' => $html ) ) );
     700        return apply_filters( 'bp_get_displayed_user_avatar', bp_core_fetch_avatar( array( 'item_id' => $bp->displayed_user->id, 'type' => $type, 'width' => $width, 'height' => $height, 'html' => $html, 'alt' => $alt ) ) );
    699701    }
    700702
Note: See TracChangeset for help on using the changeset viewer.