From 7f42b7f48074e50764e04e7226b5432e136f12b7 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 18 May 2006 00:46:07 +0000 Subject: [PATCH] Combine category forms and move to edit-category-form.php. git-svn-id: https://develop.svn.wordpress.org/trunk@3777 602fd350-edb4-49c9-b593-d223f7449a82 --- 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); - ?> - -
-

-
- 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 = '
'; + $action = 'addcat'; + $nonce_action = 'add-category'; +} +?> + +
+

+ + + + + + + + + + + + + + + + + + + + + +
+
+

+
+ +
\ No newline at end of file