From 3a4570b0fc8b3d6339bef71d17d7701554e0bbf7 Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 12 Oct 2007 16:21:15 +0000 Subject: Merge with WP 2.3 - testing use only! Move pluggable functions out of wpmu-functions and into pluggable.php, fixes #439 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1069 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/link-category.php | 71 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 wp-admin/link-category.php (limited to 'wp-admin/link-category.php') diff --git a/wp-admin/link-category.php b/wp-admin/link-category.php new file mode 100644 index 0000000..4205892 --- /dev/null +++ b/wp-admin/link-category.php @@ -0,0 +1,71 @@ +%s category: this is the default one"), $cat_name)); + + wp_delete_term($cat_ID, 'link_category'); + + wp_redirect('edit-link-categories.php?message=2'); + exit; + +break; + +case 'edit': + $title = __('Categories'); + $parent_file = 'link-manager.php'; + $submenu_file = 'edit-link-categories.php'; + require_once ('admin-header.php'); + $cat_ID = (int) $_GET['cat_ID']; + $category = get_term_to_edit($cat_ID, 'link_category'); + include('edit-link-category-form.php'); + include('admin-footer.php'); + exit; +break; + +case 'editedcat': + $cat_ID = (int) $_POST['cat_ID']; + check_admin_referer('update-link-category_' . $cat_ID); + + if ( !current_user_can('manage_categories') ) + wp_die(__('Cheatin’ uh?')); + + if ( wp_update_term($cat_ID, 'link_category', $_POST) ) + wp_redirect('edit-link-categories.php?message=3'); + else + wp_redirect('edit-link-categories.php?message=5'); + + exit; +break; +} + +?> -- cgit