Changeset 7886
- Timestamp:
- 05/04/2008 06:05:20 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/schema.php
r7879 r7886 255 255 256 256 // 2.6 257 add_option('avatar_default', ' default');257 add_option('avatar_default', 'mystery'); 258 258 259 259 // Delete unused options -
trunk/wp-admin/options-discussion.php
r7883 r7886 79 79 <h3><?php _e('Avatars') ?></h3> 80 80 81 <p><?php _e(' By default WordPress uses <a href="http://gravatar.com/">Gravatars</a> — short for Globally Recognized Avatars — for the pictures that show up next to comments. Plugins may override this.'); ?></p>81 <p><?php _e('An avatar is an image that follows you from weblog to weblog appearing beside your name when you comment on avatar enabled sites. Here you can enable the display of avatars for people who comment on your blog.'); ?></p> 82 82 83 83 <?php // the above would be a good place to link to codex documentation on the gravatar functions, for putting it in themes. anything like that? ?> … … 118 118 <?php 119 119 $avatar_defaults = array( 120 'default' => __('Default'), 120 'mystery' => __('Mystery Man'), 121 'blank' => __('Blank'), 121 122 'gravatar_default' => __('Gravatar Logo'), 122 123 'identicon' => __('Identicon (Generated)'), … … 127 128 $default = get_option('avatar_default'); 128 129 if ( empty($default) ) 129 $default = ' default';130 $default = 'mystery'; 130 131 $size = 32; 131 132 $avatar_list = ''; -
trunk/wp-includes/pluggable.php
r7879 r7886 1247 1247 $avatar_default = get_option('avatar_default'); 1248 1248 if ( empty($avatar_default) ) 1249 $default = ' default';1249 $default = 'mystery'; 1250 1250 else 1251 1251 $default = $avatar_default; … … 1254 1254 if ( 'custom' == $default ) 1255 1255 $default = add_query_arg( 's', $size, $defaults[$avatar_default][1] ); 1256 elseif ( ' default' == $default )1256 elseif ( 'mystery' == $default ) 1257 1257 $default = "http://www.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s={$size}"; // ad516503a11cd5ca435acc9bb6523536 == md5('unknown@gravatar.com') 1258 elseif ( 'blank' == $default ) 1259 $default = get_option('siteurl') . '/wp-includes/images/blank.gif'; 1258 1260 elseif ( !empty($email) && 'gravatar_default' == $default ) 1259 1261 $default = '';
Note: See TracChangeset
for help on using the changeset viewer.