Make WordPress Core

Changeset 1607 for trunk


Ignore:
Timestamp:
09/05/2004 07:25:31 AM (21 years ago)
Author:
saxmatt
Message:

Slight cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-comments.php

    r1606 r1607  
    1 <?php
     1<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password) : ?>
     2<p><?php _e('Enter your password to view comments.'); ?></p>
     3<?php return; endif; ?>
    24
    3 if ('wp-comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    4     die ('Please do not load this page directly. Thanks!');
    5 
    6 if ( !empty($post->post_password) && $_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password) :
    7 ?>
    8 <p><?php _e('Enter your password to view comments.'); ?></p>
    9 <?php
    10     return;
    11 endif;
    12 ?>
    13 
    14 <!-- You can start editing here. -->
    15 
    16 <h2 id="comments"><?php comments_number(__("Comments"), __("1 Comment"), __("% Comments")); ?>
     5<h2 id="comments"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
    176<?php if ( comments_open() ) : ?>
    187    <a href="#postcomment" title="<?php _e("Leave a comment"); ?>">&raquo;</a>
     
    3322</ol>
    3423
    35 <?php else : ?>
     24<?php else : // If there are no comments yet ?>
    3625    <p><?php _e('No comments yet.'); ?></p>
    3726<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.