$category = get_category($cat_ID, ARRAY_A);
// Escape data pulled from DB.
- $category = add_magic_quotes($category);
+ $category = wp_slash($category);
// Merge old and new fields with new fields overwriting old ones.
$catarr = array_merge($category, $catarr);