Changeset 8661
- Timestamp:
- 08/17/2008 11:23:49 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r8600 r8661 1345 1345 * @param int $size Size of the avatar image 1346 1346 * @param string $default URL to a default image to use if no avatar is available 1347 * @param string $alt Alternate text to use in image tag 1347 1348 * @return string <img> tag for the user's avatar 1348 1349 */ 1349 function get_avatar( $id_or_email, $size = '96', $default = '' ) {1350 function get_avatar( $id_or_email, $size = '96', $default = '', $alt = 'Avatar' ) { 1350 1351 if ( ! get_option('show_avatars') ) 1351 1352 return false; … … 1404 1405 $out .= "&r={$rating}"; 1405 1406 1406 $avatar = "<img alt=' ' src='{$out}' class='avatar avatar-{$size}' height='{$size}' width='{$size}' />";1407 $avatar = "<img alt='{$alt}' src='{$out}' class='avatar avatar-{$size}' height='{$size}' width='{$size}' />"; 1407 1408 } else { 1408 $avatar = "<img alt=' ' src='{$default}' class='avatar avatar-{$size} avatar-default' height='{$size}' width='{$size}' />";1409 } 1410 1411 return apply_filters('get_avatar', $avatar, $id_or_email, $size, $default );1409 $avatar = "<img alt='{$alt}' src='{$default}' class='avatar avatar-{$size} avatar-default' height='{$size}' width='{$size}' />"; 1410 } 1411 1412 return apply_filters('get_avatar', $avatar, $id_or_email, $size, $default, $alt); 1412 1413 } 1413 1414 endif;
Note: See TracChangeset
for help on using the changeset viewer.