WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r8389 r7883  
    1111    foreach( (array) $_GET['delete'] as $cat_ID ) {
    1212        $cat_name = get_term_field('name', $cat_ID, 'link_category');
    13         $default_cat_id = get_option('default_link_category');
    14        
     13
    1514        // Don't delete the default cats.
    16         if ( $cat_ID == $default_cat_id )
     15        if ( $cat_ID == get_option('default_link_category') )
    1716            wp_die(sprintf(__("Can&#8217;t delete the <strong>%s</strong> category: this is the default one"), $cat_name));
    1817
    19         wp_delete_term($cat_ID, 'link_category', array('default' => $default_cat_id));
     18        wp_delete_term($cat_ID, 'link_category');
    2019    }
    2120
Note: See TracChangeset for help on using the changeset viewer.