Making WordPress.org


Ignore:
Timestamp:
04/26/2022 06:21:29 AM (2 years ago)
Author:
dd32
Message:

Trac: Set appropriate alt tags for avatars.

Props sabernhardt.
Fixes #6291.
Closes https://github.com/WordPress/wordpress.org/pull/70.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/trac.wordpress.org/templates/ticket_change.html

    r9900 r11795  
    3838    <span class="avatar" py:if="change">
    3939      <span class="username-line">
    40         <img src="https://wordpress.org/grav-redirect.php?user=${wporg_user}&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=${wporg_user}&amp;s=96 2x" height="48" width="48" />
     40        <img src="https://wordpress.org/grav-redirect.php?user=${wporg_user}&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=${wporg_user}&amp;s=96 2x" height="48" width="48" alt="" />
    4141        ${wiki_to_html(context, change.comment, escape_newlines=preserve_newlines)}
    4242      </span>
     
    6464    <span class="avatar">
    6565      <span class="username-line">
    66         <img src="https://wordpress.org/grav-redirect.php?user=${wporg_user}&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=${wporg_user}&amp;s=96 2x" height="48" width="48" />
     66        <img src="https://wordpress.org/grav-redirect.php?user=${wporg_user}&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=${wporg_user}&amp;s=96 2x" height="48" width="48" alt="" />
    6767        ${wiki_to_html(context, pr_byline, escape_newlines=preserve_newlines)}
    6868      </span>
     
    116116        <span class="avatar" py:if="change">
    117117          <span class="username-line"><a href="https://profiles.wordpress.org/${wporg_user}" class="profile-link">
    118             <img src="https://wordpress.org/grav-redirect.php?user=${wporg_user}&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=${wporg_user}&amp;s=96 2x" height="48" width="48" /> @<span class="username" data-username="${change.author}" data-nicename="${wporg_user}">${authorinfo(change.author)}</span></a></span>
     118            <img src="https://wordpress.org/grav-redirect.php?user=${wporg_user}&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=${wporg_user}&amp;s=96 2x" height="48" width="48" alt="" /> @<span class="username" data-username="${change.author}" data-nicename="${wporg_user}">${authorinfo(change.author)}</span></a></span>
    119119          <py:if test="'date' in change">
    120120            <br /><span class="time-ago">${dateinfo(change.date)} ago</span>
Note: See TracChangeset for help on using the changeset viewer.