Changeset 3675

Show
Ignore:
Timestamp:
04/01/06 23:27:47 (3 years ago)
Author:
ryan
Message:

Add braces in case our belt gives out after a large meal. Props westi. fixes #2609

Files:

Legend:

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

    r3665 r3675  
    4545    $cat_name = get_catname($cat_ID); 
    4646 
    47     if ( 1 == $cat_ID ) 
     47    // Don't delete the default cats. 
     48    if ( $cat_ID == get_option('default_category') ) 
    4849        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)); 
    4953 
    5054    wp_delete_category($cat_ID);