WordPress.org

Make WordPress Core

Changeset 9207


Ignore:
Timestamp:
10/16/08 20:05:34 (6 years ago)
Author:
ryan
Message:

Add avatar_size arg. Props Otto42. see #7635

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r9175 r9207  
    10721072        <?php endif; ?> 
    10731073        <div class="comment-author vcard"> 
    1074         <?php echo get_avatar( $comment, 32 ) ?> 
     1074        <?php if ($args['avatar_size'] != 0) echo get_avatar( $comment, $args['avatar_size'] ); ?> 
    10751075        <?php printf(__('<cite>%s</cite> Says:'), get_comment_author_link()) ?> 
    10761076        </div> 
     
    11331133 
    11341134    $defaults = array('walker' => null, 'depth' => '', 'style' => 'ul', 'callback' => null, 'end-callback' => null, 'type' => 'all', 
    1135         'page' => get_query_var('cpage'), 'per_page' => ''); 
     1135        'page' => get_query_var('cpage'), 'per_page' => '', 'avatar_size' => 32); 
    11361136 
    11371137    $r = wp_parse_args( $args, $defaults ); 
Note: See TracChangeset for help on using the changeset viewer.