%s category: this is the default one"), $cat_name)); $categories = $wpdb->get_results("SELECT * FROM $wpdb->categories"); if( count( $categories ) == 1 ) die(sprintf(__("Can't delete the %s category: this is the only one"), $cat_name)); wp_delete_category($cat_ID); header('Location: categories.php?message=2'); break; case 'edit': require_once ('admin-header.php'); $cat_ID = (int) $_GET['cat_ID']; $category = get_category_to_edit($cat_ID); ?>

add new)'), '#addcat') ?>

Note:
Deleting a category does not delete posts from that category, it will just set them back to the default category %s.'), get_catname( get_option( 'default_category' ) )) ?>
%s, as a result. You must set another category as the default one by visiting the Writing Options page and changing it there.'), get_catname( get_option( 'default_category' ) )) ?>