From f232508e3d9d78c041b9f8482c92cd37552443cd Mon Sep 17 00:00:00 2001 From: saxmatt Date: Wed, 4 Jun 2003 21:11:15 +0000 Subject: [PATCH] Unecessary queries. git-svn-id: http://svn.automattic.com/wordpress/trunk@169 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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: