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/classic/comments-popup.php

    r10767 r10978  
    3131<p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><?php _e("<abbr title=\"Really Simple Syndication\">RSS</abbr> feed for comments on this post."); ?></a></p>
    3232
    33 <?php if ('open' == $post->ping_status) { ?>
     33<?php if ( pings_open() ) { ?>
    3434<p><?php _e("The <abbr title=\"Universal Resource Locator\">URL</abbr> to TrackBack this entry is:"); ?> <em><?php trackback_url() ?></em></p>
    3535<?php } ?>
     
    5959<?php } ?>
    6060
    61 <?php if ('open' == $commentstatus->comment_status) { ?>
     61<?php if ( comments_open($commentstatus) ) { ?>
    6262<h2><?php _e("Leave a comment"); ?></h2>
    6363<p><?php _e("Line and paragraph breaks automatic, e-mail address never displayed, <acronym title=\"Hypertext Markup Language\">HTML</acronym> allowed:"); ?> <code><?php echo allowed_tags(); ?></code></p>
Note: See TracChangeset for help on using the changeset viewer.