Changeset 558 for trunk/wp-admin/import-textpattern.php
- Timestamp:
- 11/25/2003 12:46:52 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/import-textpattern.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import-textpattern.php
r529 r558 81 81 // For now we're going to give everything the same author and same category 82 82 $author = $wpdb->get_var("SELECT ID FROM $tableusers WHERE user_level = 10 LIMIT 1"); 83 ++$querycount; 83 84 $category = $wpdb->get_var("SELECT cat_ID FROM $tablecategories LIMIT 1"); 85 ++$querycount; 84 86 85 87 $posts = mysql_query('SELECT * FROM textpattern', $connection); 88 ++$querycount; 86 89 87 90 while ($post = mysql_fetch_array($posts)) { … … 109 112 // Get wordpress post id 110 113 $wp_post_ID = $wpdb->get_var("SELECT ID FROM $tableposts ORDER BY ID DESC LIMIT 1"); 114 ++$querycount; 111 115 112 116 // Now let's insert comments if there are any for the TP post 113 117 $tp_id = $post['ID']; 114 118 $comments = mysql_query("SELECT * FROM txp_Discuss WHERE parentid = $tp_id"); 119 ++$querycount; 115 120 if ($comments) { 116 121 while($comment = mysql_fetch_object($comments)) {
Note: See TracChangeset
for help on using the changeset viewer.