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/image.php

    r8999 r10978  
    3333                        You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed.
    3434
    35                         <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
     35                        <?php if ( comments_open() && pings_open() ) {
    3636                            // Both Comments and Pings are open ?>
    3737                            You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
    3838
    39                         <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
     39                        <?php } elseif ( !comments_open() && pings_open() ) {
    4040                            // Only Pings are Open ?>
    4141                            Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
    4242
    43                         <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
     43                        <?php } elseif ( comments_open() && !pings_open() ) {
    4444                            // Comments are open, Pings are not ?>
    4545                            You can skip to the end and leave a response. Pinging is currently not allowed.
    4646
    47                         <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
     47                        <?php } elseif ( !comments_open() && !pings_open() ) {
    4848                            // Neither Comments, nor Pings are open ?>
    4949                            Both comments and pings are currently closed.
Note: See TracChangeset for help on using the changeset viewer.