%s category: this is the default one"), $cat_name)); if ( $cat_ID == get_option('default_link_category') ) wp_die(sprintf(__("Can’t delete the %s category: this is the default one for links"), $cat_name)); wp_delete_category($cat_ID); wp_redirect('categories.php?message=2'); exit; break; case 'edit': require_once ('admin-header.php'); $cat_ID = (int) $_GET['cat_ID']; $category = get_category_to_edit($cat_ID); include('edit-category-form.php'); break; case 'editedcat': $cat_ID = (int) $_POST['cat_ID']; check_admin_referer('update-category_' . $cat_ID); if ( !current_user_can('manage_categories') ) wp_die(__('Cheatin’ uh?')); if ( wp_update_category($_POST) ) wp_redirect('categories.php?message=3'); else wp_redirect('categories.php?message=5'); exit; break; default: wp_enqueue_script( 'admin-categories' ); require_once ('admin-header.php'); $messages[1] = __('Category added.'); $messages[2] = __('Category deleted.'); $messages[3] = __('Category updated.'); $messages[4] = __('Category not added.'); $messages[5] = __('Category not updated.'); ?>

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

Note:
Deleting a category does not delete the posts and links in that category. Instead, posts in the deleted category are set to the category %s and links are set to %s.'), apply_filters('the_category', get_catname(get_option('default_category'))), apply_filters('the_category', get_catname(get_option('default_link_category')))) ?>