Making WordPress.org


Ignore:
Timestamp:
07/08/2015 07:17:45 PM (10 years ago)
Author:
ocean90
Message:

Trac Notifications: Enable HiDPI version of gravatars in wporg_trac_notifications::ticket_notes() for browsers that support srcset.

see #1018.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-notifications.php

    r1549 r1714  
    404404        }
    405405
     406        $gravatar_url = '//wordpress.org/grav-redirect.php?user=' . esc_attr( $ticket->reporter );
     407
    406408        echo '<p class="ticket-note note-new-reporter">';
    407         echo '<img width="36" height="36" src="//wordpress.org/grav-redirect.php?user=' . esc_attr( $ticket->reporter ) . '&amp;s=36" /> ';
     409        echo '<img width="36" height="36" src="'. $gravatar_url . '&amp;s=36" srcset="'. $gravatar_url . '&amp;s=72 2x" /> ';
    408410        echo '<span class="note">' . $output . '</span>';
    409411        echo '<span class="dashicons dashicons-welcome-learn-more"></span>';
Note: See TracChangeset for help on using the changeset viewer.