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/wp-admin/import-textpattern.php

    r529 r558  
    8181// For now we're going to give everything the same author and same category
    8282$author = $wpdb->get_var("SELECT ID FROM $tableusers WHERE user_level = 10 LIMIT 1");
     83++$querycount;
    8384$category = $wpdb->get_var("SELECT cat_ID FROM $tablecategories LIMIT 1");
     85++$querycount;
    8486
    8587$posts = mysql_query('SELECT * FROM textpattern', $connection);
     88++$querycount;
    8689
    8790while ($post = mysql_fetch_array($posts)) {
     
    109112    // Get wordpress post id
    110113    $wp_post_ID = $wpdb->get_var("SELECT ID FROM $tableposts ORDER BY ID DESC LIMIT 1");
     114    ++$querycount;
    111115   
    112116    // Now let's insert comments if there are any for the TP post
    113117    $tp_id = $post['ID'];
    114118    $comments = mysql_query("SELECT * FROM txp_Discuss WHERE parentid = $tp_id");
     119    ++$querycount;
    115120    if ($comments) {
    116121        while($comment = mysql_fetch_object($comments)) {
Note: See TracChangeset for help on using the changeset viewer.