WordPress.org

Make WordPress Core

Ticket #7635: avatar-size.diff

File avatar-size.diff, 940 bytes (added by Otto42, 10 years ago)

Patch to add avatar_size parameter

  • comment-template.php

     
    10341034                <div id="div-comment-<?php comment_ID() ?>">
    10351035                <?php endif; ?>
    10361036                <div class="comment-author vcard">
    1037                 <?php echo get_avatar( $comment, 32 ) ?>
     1037                <?php if ($args['avatar_size'] != 0) echo get_avatar( $comment, $args['avatar_size'] ); ?>
    10381038                <?php printf(__('<cite>%s</cite> Says:'), get_comment_author_link()) ?>
    10391039                </div>
    10401040<?php if ($comment->comment_approved == '0') : ?>
     
    10951095        $comment_depth = 1;
    10961096
    10971097        $defaults = array('walker' => null, 'depth' => '', 'style' => 'ul', 'callback' => null, 'end-callback' => null, 'type' => 'all',
    1098                 'page' => get_query_var('cpage'), 'per_page' => '');
     1098                'page' => get_query_var('cpage'), 'per_page' => '', 'avatar_size' => 32);
    10991099
    11001100        $r = wp_parse_args( $args, $defaults );
    11011101