Changeset 3675 for trunk/wp-admin/categories.php
- Timestamp:
- 04/01/2006 11:27:47 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/categories.php
r3665 r3675 45 45 $cat_name = get_catname($cat_ID); 46 46 47 if ( 1 == $cat_ID ) 47 // Don't delete the default cats. 48 if ( $cat_ID == get_option('default_category') ) 48 49 die(sprintf(__("Can't delete the <strong>%s</strong> category: this is the default one"), $cat_name)); 50 51 if ( $cat_ID == get_option('default_link_category') ) 52 die(sprintf(__("Can't delete the <strong>%s</strong> category: this is the default one for bookmarks"), $cat_name)); 49 53 50 54 wp_delete_category($cat_ID);
Note: See TracChangeset
for help on using the changeset viewer.