Making WordPress.org


Ignore:
Timestamp:
07/01/2014 05:26:45 PM (10 years ago)
Author:
nacin
Message:

Trac Notifications/Components: Use get_avatar() rather than grav-redirect.

File:
1 edited

Legend:

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

    r461 r734  
    344344                    ?>
    345345                        <a<?php echo $class; ?> title="<?php echo $follower; ?>" href="//profiles.wordpress.org/<?php echo $follower; ?>">
    346                             <img width="36" height="36" src="//wordpress.org/grav-redirect.php?user=<?php echo $follower; ?>&amp;s=36" />
     346                            <?php echo get_avatar( get_user_by( 'login', $follower )->user_email, 36 ); ?>
    347347                            <span class="username"><?php echo $follower; ?></span>
    348348                        </a>
    349349                    <?php endforeach; ?>
    350350                    <a title="you" class="star-you" href="//profiles.wordpress.org/<?php echo esc_attr( $username ); ?>">
    351                         <img width="36" height="36" src="//wordpress.org/grav-redirect.php?user=<?php echo esc_attr( $username ); ?>&amp;s=36" />
     351                        <?php echo get_avatar( wp_get_current_user()->user_email, 36 ); ?>
    352352                        <span class="username"><?php echo $username; ?></span>
    353353                    </a>
Note: See TracChangeset for help on using the changeset viewer.