Changeset 5654 for trunk/wp-admin/categories.php
- Timestamp:
- 06/05/2007 05:08:27 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/categories.php
r5528 r5654 36 36 if ( $cat_ID == get_option('default_category') ) 37 37 wp_die(sprintf(__("Can’t delete the <strong>%s</strong> category: this is the default one"), $cat_name)); 38 39 if ( $cat_ID == get_option('default_link_category') )40 wp_die(sprintf(__("Can’t delete the <strong>%s</strong> category: this is the default one for links"), $cat_name));41 38 42 39 wp_delete_category($cat_ID); … … 114 111 <?php if ( current_user_can('manage_categories') ) : ?> 115 112 <div class="wrap"> 116 <p><?php printf(__('<strong>Note:</strong><br />Deleting a category does not delete the posts and links in that category. Instead, posts that were only assigned to the deleted category are set to the category <strong>%s</strong> and links that were only assigned to the deleted category are set to <strong>%s</strong>.'), apply_filters('the_category', get_catname(get_option('default_category'))), apply_filters('the_category', get_catname(get_option('default_link_category')))) ?></p>113 <p><?php printf(__('<strong>Note:</strong><br />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 <strong>%s</strong>.'), apply_filters('the_category', get_catname(get_option('default_category')))) ?></p> 117 114 </div> 118 115
Note: See TracChangeset
for help on using the changeset viewer.