From b09bcad62eaa2568e5eb43f7c6d3705d7adf187b Mon Sep 17 00:00:00 2001
From: saxmatt
Date: Fri, 30 Jan 2004 06:22:55 +0000
Subject: [PATCH] Fix for not being able to select no parent, JVerber. Tweaked
redirect after adding new category.
git-svn-id: http://svn.automattic.com/wordpress/trunk@812 1a063a9b-81f0-0310-95a4-ce76da25c4cd
---
wp-admin/categories.php | 42 +++++++++++++++++++++--------------------
1 file changed, 22 insertions(+), 20 deletions(-)
diff --git a/wp-admin/categories.php b/wp-admin/categories.php
index 525435f5d8..49ae994f56 100644
--- a/wp-admin/categories.php
+++ b/wp-admin/categories.php
@@ -51,7 +51,7 @@ case 'addcat':
$wpdb->query("INSERT INTO $tablecategories (cat_ID, cat_name, category_nicename, category_description, category_parent) VALUES ('0', '$cat_name', '$category_nicename', '$category_description', $cat)");
- header('Location: categories.php');
+ header('Location: categories.php#addcat');
break;
@@ -92,9 +92,10 @@ case 'edit':
Category name:
Category parent:
-
-
+
Description:
@@ -134,22 +135,6 @@ default:
}
?>
-
-
Current Categories
@@ -173,10 +158,27 @@ cat_rows();
+
+
Add New Category
+
+
+
*/
include('admin-footer.php');
-?>
\ No newline at end of file
+?>
\ No newline at end of file