Restore fields removed in [7645]. Props rm53. fixes #7320 for trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@8350 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-07-16 16:30:20 +00:00
parent e04638ac6f
commit 053eb7cee9
1 changed files with 4 additions and 0 deletions

View File

@ -543,6 +543,10 @@ function upgrade_230() {
$categories = $wpdb->get_results("SELECT * FROM $wpdb->categories ORDER BY cat_ID");
foreach ($categories as $category) {
$term_id = (int) $category->cat_ID;
$name = $category->cat_name;
$description = $category->category_description;
$slug = $category->category_nicename;
$parent = $category->category_parent;
$term_group = 0;
// Associate terms with the same slug in a term group and make slugs unique.