X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/022dfbbbe3215917d84708eb09acca93b21ae9e0..7688c6ba71852cd89123b62b2d57683535e4702a:/wp-admin/categories.php diff --git a/wp-admin/categories.php b/wp-admin/categories.php index d26a847b..cc2b37a5 100644 --- a/wp-admin/categories.php +++ b/wp-admin/categories.php @@ -3,23 +3,8 @@ require_once('admin.php'); $title = __('Categories'); $parent_file = 'edit.php'; -$list_js = true; - -$wpvarstoreset = array('action','cat'); -for ($i=0; $i%s category: this is the default one"), $cat_name)); + if ( $cat_ID == get_option('default_category') ) + wp_die(sprintf(__("Can’t delete the %s category: this is the default one"), $cat_name)); wp_delete_category($cat_ID); wp_redirect('categories.php?message=2'); exit; + break; case 'edit': - require_once ('admin-header.php'); - $cat_ID = (int) $_GET['cat_ID']; - $category = get_category_to_edit($cat_ID); - ?> - -
-

-
- cat_ID); ?> - - - - - - - - - - - - - - - - - -
-
-
-

-
-

-
- @@ -129,44 +89,33 @@ $messages[3] = __('Category updated.');

- +
+ - + - - + + + + +
-
-
-

Note:
Deleting a category does not delete posts from that category, it will just set them back to the default category %s.'), get_catname(get_option('default_category'))) ?>

+

Note:
Deleting a category does not delete the posts in that category. Instead, posts that were only assigned to the deleted category are set to the category %s.'), apply_filters('the_category', get_catname(get_option('default_category')))) ?>

+

category to tag converter.'), 'admin.php?import=wp-cat2tag') ?>

-
-

-
- -


-

-


-

-


-

-

-
-
+ +