Ticket #4215: trac4215_avatar_html_pref.patch
File trac4215_avatar_html_pref.patch, 798 bytes (added by , 13 years ago) |
---|
-
bp-core/bp-core-avatars.php
294 294 $gravatar = apply_filters( "bp_core_default_avatar_$object", BP_PLUGIN_URL . '/bp-core/images/mystery-man.jpg', $params ); 295 295 } 296 296 297 if ( true === $html)297 if ( !empty( $html ) ) 298 298 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 ); 299 299 else 300 300 return apply_filters( 'bp_core_fetch_avatar_url', $gravatar );