From 80ce3031d195a69270d70f2579c5f5f1dfad9d1f Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 26 May 2007 18:54:16 +0000 Subject: [PATCH] Update cat2tag converter. Some term API tweaks. see #4189 git-svn-id: http://svn.automattic.com/wordpress/trunk@5553 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/import/wp-cat2tag.php | 55 +++++++++++++--------------------- wp-admin/includes/template.php | 2 +- wp-includes/category.php | 2 +- wp-includes/post.php | 2 +- wp-includes/taxonomy.php | 38 ++++++++++++----------- 5 files changed, 43 insertions(+), 56 deletions(-) diff --git a/wp-admin/import/wp-cat2tag.php b/wp-admin/import/wp-cat2tag.php index 6df9f1cce8..06add67cef 100644 --- a/wp-admin/import/wp-cat2tag.php +++ b/wp-admin/import/wp-cat2tag.php @@ -16,7 +16,7 @@ class WP_Categories_to_Tags { function populate_all_categories() { global $wpdb; - $this->all_categories = $wpdb->get_results("SELECT * FROM $wpdb->categories WHERE (type & ~ " . TAXONOMY_TAG . ") != 0 AND category_count > 0 ORDER BY cat_name ASC"); + $this->all_categories = get_categories('get=all'); } function welcome() { @@ -40,13 +40,13 @@ class WP_Categories_to_Tags { print '
'; print '