Changeset 6046
- Timestamp:
- 05/26/2012 03:37:59 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-avatars.php
r6023 r6046 308 308 309 309 // Return it wrapped in an <img> element 310 if ( true === $html) {310 if ( !empty( $html ) ) { 311 311 return apply_filters( 'bp_core_fetch_avatar', '<img src="' . $avatar_url . '" alt="' . esc_attr( $alt ) . '" class="' . esc_attr( $class ) . '"' . $css_id . $html_width . $html_height . $title . ' />', $params, $item_id, $avatar_dir, $css_id, $html_width, $html_height, $avatar_folder_url, $avatar_folder_dir ); 312 312 … … 370 370 } 371 371 372 if ( true === $html)372 if ( !empty( $html ) ) 373 373 return apply_filters( 'bp_core_fetch_avatar', '<img src="' . $gravatar . '" alt="' . esc_attr( $alt ) . '" class="' . esc_attr( $class ) . '"' . $css_id . $html_width . $html_height . $title . ' />', $params, $item_id, $avatar_dir, $css_id, $html_width, $html_height, $avatar_folder_url, $avatar_folder_dir ); 374 374 else
Note: See TracChangeset
for help on using the changeset viewer.