From 50cbcada3516bca197add6e25597cc7a0c3b75f8 Mon Sep 17 00:00:00 2001
From: Matt Mullenweg
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: https://develop.svn.wordpress.org/trunk@812 602fd350-edb4-49c9-b593-d223f7449a82
---
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