diff --git a/wp-admin/categories.php b/wp-admin/categories.php index 8f3afa4d2a..dcc0039052 100644 --- a/wp-admin/categories.php +++ b/wp-admin/categories.php @@ -59,7 +59,7 @@ case 'Delete': $standalone = 1; require_once('b2header.php'); - $cat_ID = intval($HTTP_POST_VARS["cat_ID"]); + $cat_ID = intval($HTTP_GET_VARS["cat_ID"]); $cat_name = get_catname($cat_ID); $cat_name = addslashes($cat_name); @@ -76,22 +76,23 @@ case 'Delete': break; -case 'Rename': +case 'edit': require_once ('b2header.php'); - $cat_name = get_catname($HTTP_POST_VARS['cat_ID']); - $cat_name = stripslashes($cat_name); + $category = $wpdb->get_row("SELECT * FROM $tablecategories WHERE cat_ID = " . $HTTP_GET_VARS['cat_ID']); + $cat_name = stripslashes($category->cat_name); ?>
Old name:
--
Note:
Deleting a category does not delete posts from that category, it will just