Ticket #22650: 22650.3.diff
| File 22650.3.diff, 3.4 KB (added by , 12 years ago) |
|---|
-
src/wp-admin/credits.php
111 111 112 112 echo '<p class="about-description">' . __( 'WordPress is created by a worldwide team of passionate individuals.' ) . "</p>\n"; 113 113 114 $gravatar = is_ssl() ? 'https://secure.gravatar.com/avatar/' : 'http://0.gravatar.com/avatar/';115 116 114 foreach ( $credits['groups'] as $group_slug => $group_data ) { 117 115 if ( $group_data['name'] ) { 118 116 if ( 'Translators' == $group_data['name'] ) { … … 147 145 echo '<li class="wp-person" id="wp-person-' . $person_data[2] . '">' . "\n\t"; 148 146 echo '<a href="' . sprintf( $credits['data']['profiles'], $person_data[2] ) . '">'; 149 147 $size = 'compact' == $group_data['type'] ? '30' : '60'; 150 echo '<img src="' . $gravatar . $person_data[1] . '?s=' . $size . '" class="gravatar" alt="' . esc_attr( $person_data[0] ) . '" /></a>' . "\n\t";148 echo get_avatar( $person_data[1], $size, '', $person_data[0] ); 151 149 echo '<a class="web" href="' . sprintf( $credits['data']['profiles'], $person_data[2] ) . '">' . $person_data[0] . "</a>\n\t"; 152 150 if ( ! $compact ) 153 151 echo '<span class="title">' . translate( $person_data[3] ) . "</span>\n"; -
src/wp-admin/css/about.css
268 268 margin-right: 10px; 269 269 } 270 270 271 .about-wrap li.wp-person img. gravatar {271 .about-wrap li.wp-person img.avatar { 272 272 float: left; 273 273 margin: 0 10px 10px 0; 274 274 padding: 2px; … … 276 276 height: 60px; 277 277 } 278 278 279 .about-wrap ul.compact li.wp-person img. gravatar {279 .about-wrap ul.compact li.wp-person img.avatar { 280 280 width: 30px; 281 281 height: 30px; 282 282 } -
src/wp-includes/pluggable.php
2043 2043 * 2044 2044 * @since 2.5.0 2045 2045 * 2046 * @param int|string|object $id_or_email A user ID, email address, or comment object2046 * @param int|string|object $id_or_email A user ID, email address or MD5 hash, or comment object 2047 2047 * @param int $size Size of the avatar image 2048 2048 * @param string $default URL to a default image to use if no avatar is available 2049 2049 * @param string $alt Alternative text to use in image tag. Defaults to blank … … 2102 2102 $default = $avatar_default; 2103 2103 } 2104 2104 2105 if ( !empty($email) ) 2106 $email_hash = md5( strtolower( trim( $email ) ) ); 2105 if ( ! empty( $email ) ) { 2106 if ( preg_match( '/^[a-f0-9]{32}$/', $email ) ) { 2107 $email_hash = $email; 2108 } else { 2109 $email_hash = md5( strtolower( trim( $email ) ) ); 2110 } 2111 } 2107 2112 2108 2113 if ( is_ssl() ) { 2109 2114 $host = 'https://secure.gravatar.com'; … … 2149 2154 * @since 2.5.0 2150 2155 * 2151 2156 * @param string $avatar Image tag for the user's avatar. 2152 * @param int|object|string $id_or_email A user ID, email address , or comment object.2157 * @param int|object|string $id_or_email A user ID, email address or MD5 hash, or comment object. 2153 2158 * @param int $size Square avatar width and height in pixels to retrieve. 2154 2159 * @param string $alt Alternative text to use in the avatar image tag. 2155 2160 * Default empty.