WordPress.org

Make WordPress Core

Changeset 7886


Ignore:
Timestamp:
05/04/08 18:05:20 (6 years ago)
Author:
ryan
Message:

Add blank to default avatars. Rename default to Mystery Man. see #6802

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/schema.php

    r7879 r7886  
    255255 
    256256    // 2.6 
    257     add_option('avatar_default', 'default'); 
     257    add_option('avatar_default', 'mystery'); 
    258258 
    259259    // Delete unused options 
  • trunk/wp-admin/options-discussion.php

    r7883 r7886  
    7979<h3><?php _e('Avatars') ?></h3> 
    8080 
    81 <p><?php _e('By default WordPress uses <a href="http://gravatar.com/">Gravatars</a> &#8212; short for Globally Recognized Avatars &#8212; 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> 
    8282 
    8383<?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? ?> 
     
    118118<?php 
    119119$avatar_defaults = array( 
    120     'default' => __('Default'), 
     120    'mystery' => __('Mystery Man'), 
     121    'blank' => __('Blank'), 
    121122    'gravatar_default' => __('Gravatar Logo'), 
    122123    'identicon' => __('Identicon (Generated)'), 
     
    127128$default = get_option('avatar_default'); 
    128129if ( empty($default) ) 
    129     $default = 'default'; 
     130    $default = 'mystery'; 
    130131$size = 32; 
    131132$avatar_list = ''; 
  • trunk/wp-includes/pluggable.php

    r7879 r7886  
    12471247        $avatar_default = get_option('avatar_default'); 
    12481248        if ( empty($avatar_default) ) 
    1249             $default = 'default'; 
     1249            $default = 'mystery'; 
    12501250        else 
    12511251            $default = $avatar_default; 
     
    12541254    if ( 'custom' == $default ) 
    12551255        $default = add_query_arg( 's', $size, $defaults[$avatar_default][1] ); 
    1256     elseif ( 'default' == $default ) 
     1256    elseif ( 'mystery' == $default ) 
    12571257        $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'; 
    12581260    elseif ( !empty($email) && 'gravatar_default' == $default ) 
    12591261        $default = ''; 
Note: See TracChangeset for help on using the changeset viewer.