Make WordPress Core


Ignore:
Timestamp:
04/23/2009 07:11:31 AM (17 years ago)
Author:
ryan
Message:

Use is_user_logged_in(), have_comments in bundled themes. Props zeo. fixes #9626

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/default/comments.php

    r10978 r11067  
    5757</div>
    5858
    59 <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
     59<?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
    6060<p>You must be <a href="<?php echo wp_login_url( get_permalink() ); ?>">logged in</a> to post a comment.</p>
    6161<?php else : ?>
     
    6363<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    6464
    65 <?php if ( $user_ID ) : ?>
     65<?php if ( is_user_logged_in() ) : ?>
    6666
    6767<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out &raquo;</a></p>
Note: See TracChangeset for help on using the changeset viewer.