Make WordPress Core


Ignore:
Timestamp:
12/05/2003 01:24:02 AM (23 years ago)
Author:
mikelittle
Message:

Removed $querycount. Added $wpdb->querycount

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2comments.post.php

    r558 r569  
    4040
    4141$commentstatus = $wpdb->get_var("SELECT comment_status FROM $tableposts WHERE ID = $comment_post_ID");
    42 ++$querycount;
    4342if ('closed' == $commentstatus)
    4443        die('Sorry, comments are closed for this item.');
     
    6968/* Flood-protection */
    7069$lasttime = $wpdb->get_var("SELECT comment_date FROM $tablecomments WHERE comment_author_IP = '$user_ip' ORDER BY comment_date DESC LIMIT 1");
    71 ++$querycount;
    7270$ok = true;
    7371if (!empty($lasttime)) {
     
    102100
    103101        $comment_ID = $wpdb->get_var('SELECT last_insert_id()');
    104     ++$querycount;
    105102
    106103        if (($moderation_notify) && (!$approved)) {
Note: See TracChangeset for help on using the changeset viewer.