Make WordPress Core


Ignore:
Timestamp:
06/05/2007 05:08:27 AM (18 years ago)
Author:
ryan
Message:

First cut of link category management. Rough and ugly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/categories.php

    r5528 r5654  
    3636    if ( $cat_ID == get_option('default_category') )
    3737        wp_die(sprintf(__("Can&#8217;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&#8217;t delete the <strong>%s</strong> category: this is the default one for links"), $cat_name));
    4138
    4239    wp_delete_category($cat_ID);
     
    114111<?php if ( current_user_can('manage_categories') ) : ?>
    115112<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>
    117114</div>
    118115
Note: See TracChangeset for help on using the changeset viewer.