From 595b9e460bab1f4cbea064e556062571a3893144 Mon Sep 17 00:00:00 2001
From: ryan
Date: Thu, 18 May 2006 00:46:07 +0000
Subject: [PATCH] Combine category forms and move to edit-category-form.php.
git-svn-id: http://svn.automattic.com/wordpress/trunk@3777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
---
wp-admin/categories.php | 55 ++-------------------------------
wp-admin/edit-category-form.php | 48 ++++++++++++++++++++++++++++
2 files changed, 50 insertions(+), 53 deletions(-)
create mode 100644 wp-admin/edit-category-form.php
diff --git a/wp-admin/categories.php b/wp-admin/categories.php
index 6e32353d16..ea0b9b6989 100644
--- a/wp-admin/categories.php
+++ b/wp-admin/categories.php
@@ -61,40 +61,7 @@ case 'edit':
require_once ('admin-header.php');
$cat_ID = (int) $_GET['cat_ID'];
$category = get_category_to_edit($cat_ID);
- ?>
-
-
- Note:
Deleting a category does not delete the posts and bookmarks in that category. Instead, posts in the deleted category are set to the category %s and bookmarks are set to %s.'), get_catname(get_option('default_category')), get_catname(get_option('default_link_category'))) ?>
-
+
';
+ $action = 'editedcat';
+ $nonce_action = 'update-category' . $cat_ID;
+} else {
+ $heading = __('Add Category');
+ $submit_text = __('Add Category »');
+ $form = '