Changeset 6749
- Timestamp:
- 02/07/2008 06:58:38 AM (17 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r6748 r6749 1190 1190 } 1191 1191 1192 $default_sizes = array(16, 32, 48, 96, 128); 1193 if ( empty($default) ) { 1194 if ( in_array($size, $default_sizes) ) 1195 $default = trailingslashit(get_bloginfo('wpurl')) . "wp-includes/images/avatar/unknown-$size.jpg"; 1196 else 1197 $default = trailingslashit(get_bloginfo('wpurl')) . "wp-includes/images/avatar/unknown-96.jpg"; 1198 } 1192 if ( empty($default) ) 1193 $default = 'http://www.gravatar.com/avatar.php?gravatar_id=' . md5('unknown@gravatar.com') . "&size=$size"; 1194 $default = urlencode( $default ); 1199 1195 1200 1196 if ( !empty($email) ) { 1201 $default = urlencode( $default );1202 1203 1197 $out = 'http://www.gravatar.com/avatar.php?gravatar_id='; 1204 1198 $out .= md5( $email );
Note: See TracChangeset
for help on using the changeset viewer.