Making WordPress.org


Ignore:
Timestamp:
08/03/2017 07:02:05 PM (5 years ago)
Author:
coffee2code
Message:

Trac Components: Also link name of component maintainer to their w.org profile.

Props SergeyBiryukov,
Fixes #3012.

File:
1 edited

Legend:

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

    r4901 r5743  
    356356            echo '<ul class="maintainers">';
    357357            foreach ( $maintainers as $maintainer ) {
    358                 echo '<li><a href="//profiles.wordpress.org/' . esc_attr( $maintainer ) . '">' . get_avatar( get_user_by( 'login', $maintainer )->user_email, 36 ) . "</a> $maintainer</li>";
     358                printf( '<li><a href="//profiles.wordpress.org/%s">%s %s</a></li>',
     359                    esc_attr( $maintainer ),
     360                    get_avatar( get_user_by( 'login', $maintainer )->user_email, 36 ),
     361                    $maintainer
     362                );
    359363            }
    360364            echo "</ul>\n\n";
Note: See TracChangeset for help on using the changeset viewer.