Skip to:
Content

BuddyPress.org

Ticket #3225: fix-avatars-alt-default.patch

File fix-avatars-alt-default.patch, 868 bytes (added by jefferai, 14 years ago)
  • wp-content/plugins/buddypress/bp-core/bp-core-avatars.php

    diff --git a/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php b/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php
    index 5b6810a..4110ee9 100644
    a b function bp_core_avatar_handle_crop( $args = '' ) { 
    476476 * @param string $alt Alternate text to use in image tag. Defaults to blank
    477477 * @return <type>
    478478 */
    479 function bp_core_fetch_avatar_filter( $avatar, $user, $size, $default, $alt ) {
     479function bp_core_fetch_avatar_filter( $avatar, $user, $size, $default, $alt = '' ) {
    480480        global $pagenow;
    481481       
    482482        // Do not filter if inside WordPress options page
    function bp_core_avatar_url() { 
    572572        return apply_filters( 'bp_core_avatar_url', $upload_dir['baseurl'] );
    573573}
    574574
    575 ?>
    576  No newline at end of file
     575?>