Make WordPress Core


Ignore:
Timestamp:
04/17/2009 05:30:09 AM (17 years ago)
Author:
ryan
Message:

Use comments_open() and pings_open() in packaged themes. Props coffee2code. fixes #9556

File:
1 edited

Legend:

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

    r10931 r10978  
    3636 <?php else : // this is displayed if there are no comments so far ?>
    3737
    38     <?php if ('open' == $post->comment_status) : ?>
     38    <?php if ( comments_open() ) : ?>
    3939        <!-- If comments are open, but there are no comments. -->
    4040
     
    4747
    4848
    49 <?php if ('open' == $post->comment_status) : ?>
     49<?php if ( comments_open() ) : ?>
    5050
    5151<div id="respond">
Note: See TracChangeset for help on using the changeset viewer.