From a20a6af3ed2f266911bf7230d80742ea8aed315d Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Wed, 4 Jun 2003 21:11:15 +0000 Subject: [PATCH] Unecessary queries. git-svn-id: https://develop.svn.wordpress.org/trunk@169 602fd350-edb4-49c9-b593-d223f7449a82 --- b2comments.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/b2comments.php b/b2comments.php index 9c1f041e90..4aa56bb6cf 100644 --- a/b2comments.php +++ b/b2comments.php @@ -8,15 +8,13 @@ $comment_author_url = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "url" : trim($HTTP_COOKIE_VARS["comment_author_url"]); $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"); ?>

Comments

- +ping_status) { ?>

The URL to TrackBack this entry is:

@@ -40,7 +38,7 @@ if ($comments) {

Leave a Comment

- +comment_status) { ?>

Line and paragraph breaks automatic, website trumps email, HTML allowed: