diff options
Diffstat (limited to 'wp-content/themes/default/comments.php')
-rw-r--r-- | wp-content/themes/default/comments.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wp-content/themes/default/comments.php b/wp-content/themes/default/comments.php index 33534ff..08b1be1 100644 --- a/wp-content/themes/default/comments.php +++ b/wp-content/themes/default/comments.php @@ -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 »</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 »</a></p> <?php else : ?> |