diff --git a/wp-admin/categories.php b/wp-admin/categories.php index fe428f645..c06333dcf 100644 --- a/wp-admin/categories.php +++ b/wp-admin/categories.php @@ -54,7 +54,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#addcat'); + header('Location: categories.php?message=1#addcat'); break; @@ -79,7 +79,7 @@ case 'Delete': $wpdb->query("UPDATE $tablecategories SET category_parent=$cat_parent WHERE category_parent=$cat_ID"); $wpdb->query("UPDATE $tablepost2cat SET category_id='1' WHERE category_id='$cat_ID'"); - header('Location: categories.php'); + header('Location: categories.php?message=2'); break; @@ -106,7 +106,7 @@ case 'edit':


-

+

@@ -129,7 +129,7 @@ case 'editedcat': $wpdb->query("UPDATE $tablecategories SET cat_name = '$cat_name', category_nicename = '$category_nicename', category_description = '$category_description', category_parent = $cat WHERE cat_ID = $cat_ID"); - header('Location: categories.php'); + header('Location: categories.php?message=3'); break; @@ -140,7 +140,13 @@ default: if ($user_level < 3) { die(sprintf(__("You have no right to edit the categories for this blog.
Ask for a promotion to your blog admin. :)"), get_settings('admin_email'))); } - ?> +$messages[1] = __('Category added.'); +$messages[2] = __('Category deleted.'); +$messages[3] = __('Category updated.'); +?> + +

+

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

@@ -179,7 +185,7 @@ set them back to the default category %s.'), get_catname(1)) ?>


-

+