]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/themes/default/comments.php
Wordpress 2.5.1
[autoinstalls/wordpress.git] / wp-content / themes / default / comments.php
index 33534ff8dd987bbba021b2fc7c3e86232b30ad70..08b1be1e323ec7ab236b20fcad32b276b8730f63 100644 (file)
@@ -1,5 +1,5 @@
 <?php // Do not delete these lines
-       if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
+       if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
                die ('Please do not load this page directly. Thanks!');
 
        if (!empty($post->post_password)) { // if there's a password
@@ -27,6 +27,7 @@
        <?php foreach ($comments as $comment) : ?>
 
                <li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
+                       <?php echo get_avatar( $comment, 32 ); ?>
                        <cite><?php comment_author_link() ?></cite> Says:
                        <?php if ($comment->comment_approved == '0') : ?>
                        <em>Your comment is awaiting moderation.</em>
@@ -73,7 +74,7 @@
 
 <?php if ( $user_ID ) : ?>
 
-<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Logout &raquo;</a></p>
+<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Log out &raquo;</a></p>
 
 <?php else : ?>