[buddypress-trac] [BuddyPress Trac] #8600: Default gravatar is not shown in messages templates

buddypress-trac noreply at wordpress.org
Thu Nov 11 09:20:39 UTC 2021

#8600: Default gravatar is not shown in messages templates
 Reporter:  konnektiv     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  (not sure)    |    Version:
 Severity:  normal        |   Keywords:
 The default gravatar option is not correctly used in messages templates.
 This is due to the fact that the URL is encoded like this:


 when it should be:


 This happens everywhere where the user avatar is added as backbone data
 e.g. here:


 If I add a call to `html_entity_decode` before the `esc_url` call this
 fixes the problem for me. However we fix this with a workaround in our
 project using js like this:

 $(document).ajaxComplete(function () {
   $('img.avatar').each(function () {
     this.src = this.src.replace(/#038;/g, '');

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8600>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list