Ticket #117: 117.diff
File 117.diff, 1.7 KB (added by , 9 years ago) |
---|
-
src/wp-admin/credits.php
57 57 * @param string $profiles URL to the contributor's WordPress.org profile page. 58 58 */ 59 59 function _wp_credits_add_profile_link( &$display_name, $username, $profiles ) { 60 $display_name = '<a href="' . esc_url( sprintf( $profiles, $username ) ) . '">' . esc_html( $display_name) . '</a>';60 $display_name = '<a href="' . esc_url( sprintf( $profiles, $username ) ) . '">' . esc_html( utf8_decode( $display_name ) ) . '</a>'; 61 61 } 62 62 63 63 /** … … 146 146 $data = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) ); 147 147 $size *= 2; 148 148 $data2x = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) ); 149 echo '<img src="' . esc_url( $data['url'] ) . '" srcset="' . esc_url( $data2x['url'] ) . ' 2x" class="gravatar" alt="' . esc_attr( $person_data[0]) . '" /></a>' . "\n\t";150 echo '<a class="web" href="' . esc_url( sprintf( $credits['data']['profiles'], $person_data[2] ) ) . '">' . esc_html( $person_data[0]) . "</a>\n\t";149 echo '<img src="' . esc_url( $data['url'] ) . '" srcset="' . esc_url( $data2x['url'] ) . ' 2x" class="gravatar" alt="' . esc_attr( utf8_decode( $person_data[0] ) ) . '" /></a>' . "\n\t"; 150 echo '<a class="web" href="' . esc_url( sprintf( $credits['data']['profiles'], $person_data[2] ) ) . '">' . esc_html( utf8_decode( $person_data[0] ) ) . "</a>\n\t"; 151 151 if ( ! $compact ) 152 152 echo '<span class="title">' . translate( $person_data[3] ) . "</span>\n"; 153 153 echo "</li>\n";