%s category: this is the default one"), get_term_field('name', $cat_ID, 'link_category') ) ); wp_delete_term($cat_ID, 'link_category', array('default' => $default_cat_id)); } $location = 'edit-link-categories.php'; if ( $referer = wp_get_referer() ) { if ( false !== strpos($referer, 'edit-link-categories.php') ) $location = $referer; } $location = add_query_arg('message', 6, $location); wp_redirect($location); exit(); } } elseif ( ! empty($_GET['_wp_http_referer']) ) { wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) ); exit; } $title = __('Link Categories'); wp_enqueue_script('admin-categories'); if ( current_user_can('manage_categories') ) wp_enqueue_script('inline-edit-tax'); add_contextual_help($current_screen, '
' . __('You can create groups of links by using link categories. Link category names must be unique and link categories are separate from the categories you use for posts.') . '
' . '' . __('You can delete link categories, but that action does not delete the links within the category. Instead, it moves them to the default link category.') . '
' . ''. __('For more information:'). '
Note:
Deleting a category does not delete the links in that category. Instead, links that were only assigned to the deleted category are set to the category %s.'), get_term_field('name', get_option('default_link_category'), 'link_category')) ?>