Make WordPress Core

Changeset 3675


Ignore:
Timestamp:
04/01/2006 11:27:47 PM (18 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.