From 410b858509222c224d8680c96a6a704beb1c9252 Mon Sep 17 00:00:00 2001 From: westi Date: Sat, 6 Oct 2007 06:21:05 +0000 Subject: [PATCH] Ensure we have the default category id. Fixes #5150 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@6193 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index b294c5b56..71bf387c3 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -38,6 +38,7 @@ function _cat_row( $category, $level, $name_override = false ) { if ( current_user_can( 'manage_categories' ) ) { $edit = "".__( 'Edit' ).""; $default_cat_id = (int) get_option( 'default_category' ); + $default_link_cat_id = (int) get_option( 'default_link_category' ); if ( $category->term_id != $default_cat_id ) $edit .= "term_id ) . "' onclick=\"return deleteSomething( 'cat', $category->term_id, '" . js_escape(sprintf( __("You are about to delete the category '%s'.\nAll posts that were only assigned to this category will be assigned to the '%s' category.\nAll links that were only assigned to this category will be assigned to the '%s' category.\n'OK' to delete, 'Cancel' to stop." ), $category->name, get_catname( $default_cat_id ), get_catname( $default_link_cat_id ) )) . "' );\" class='delete'>".__( 'Delete' )."";