Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/09/2011 01:17:57 AM (14 years ago)
Author:
boonebgorges
Message:

Deemphasizes sprintf() type 'alt' parameters for bp_core_fetch_avatar(), in order to avoid unnecessary database queries when loading avatars. Modifies calls throughout bp_core_fetch_avatar() so that they pass literal strings as 'alt' parameters. See #3806

File:
1 edited

Legend:

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

    r5458 r5466  
    480480            'class' => 'avatar',
    481481            'id' => false,
    482             'alt' => __( 'Profile picture of %s', 'buddypress' )
     482            'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), $members_template->member->fullname )
    483483        );
    484484
     
    776776            'height' => false,
    777777            'html'   => true,
    778             'alt'    => __( 'Profile picture of %s', 'buddypress' )
     778            'alt'    => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_loggedin_user_fullname() )
    779779        );
    780780
     
    796796            'height' => false,
    797797            'html'   => true,
    798             'alt'    => __( 'Profile picture of %s', 'buddypress' )
     798            'alt'    => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_displayed_user_fullname() )
    799799        );
    800800
Note: See TracChangeset for help on using the changeset viewer.