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

git-svn-id: https://develop.svn.wordpress.org/trunk@8350 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-07-16 16:30:20 +00:00
parent da0277cebd
commit c1516b35b5
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.