Check if pings are allowed.

git-svn-id: https://develop.svn.wordpress.org/trunk@160 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2003-06-04 18:50:21 +00:00
parent 494a7d716a
commit 9c27e47bf4
2 changed files with 11 additions and 5 deletions

View File

@@ -9,13 +9,17 @@
$comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = $id ORDER BY comment_date");
$commentstatus = $wpdb->get_var("SELECT comment_status FROM $tableposts WHERE ID = $id");
$pingstatus = $wpdb->get_var("SELECT ping_status FROM $tableposts WHERE ID = $id");
?>
<!-- you can start editing here -->
<h2>Comments</h2>
<?php if ('open' == $pingstatus) { ?>
<p>The URL to TrackBack this entry is:</p>
<p><em><?php trackback_url() ?></em></p>
<?php } ?>
<ol id="comments">
<?php