Make WordPress Core


Ignore:
Timestamp:
11/25/2003 12:46:52 AM (22 years ago)
Author:
mikelittle
Message:

Missing querycount

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2comments.post.php

    r555 r558  
    4040
    4141$commentstatus = $wpdb->get_var("SELECT comment_status FROM $tableposts WHERE ID = $comment_post_ID");
    42 
     42++$querycount;
    4343if ('closed' == $commentstatus)
    4444    die('Sorry, comments are closed for this item.');
     
    6969/* Flood-protection */
    7070$lasttime = $wpdb->get_var("SELECT comment_date FROM $tablecomments WHERE comment_author_IP = '$user_ip' ORDER BY comment_date DESC LIMIT 1");
     71++$querycount;
    7172$ok = true;
    7273if (!empty($lasttime)) {
     
    101102
    102103    $comment_ID = $wpdb->get_var('SELECT last_insert_id()');
     104    ++$querycount;
    103105
    104106    if (($moderation_notify) && (!$approved)) {
Note: See TracChangeset for help on using the changeset viewer.