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/b2commentspopup.php

    r549 r558  
    3131// this line is WordPress' motor, do not delete it.
    3232$comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_approved = '1' ORDER BY comment_date");
     33++$querycount;
    3334$commentstatus = $wpdb->get_row("SELECT comment_status, post_password FROM $tableposts WHERE ID = $id");
     35++$querycount;
    3436if (!empty($commentstatus->post_password) && $HTTP_COOKIE_VARS['wp-postpass_'.$cookiehash] != $commentstatus->post_password) {  // and it doesn't match the cookie
    3537    echo(get_the_password_form());
Note: See TracChangeset for help on using the changeset viewer.