| 1 | Index: template.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- template.php (revision 6192) |
|---|
| 4 | +++ template.php (working copy) |
|---|
| 5 | @@ -38,6 +38,7 @@ |
|---|
| 6 | if ( current_user_can( 'manage_categories' ) ) { |
|---|
| 7 | $edit = "<a href='categories.php?action=edit&cat_ID=$category->term_id' class='edit'>".__( 'Edit' )."</a></td>"; |
|---|
| 8 | $default_cat_id = (int) get_option( 'default_category' ); |
|---|
| 9 | + $default_link_cat_id = (int) get_option( 'default_link_category' ); |
|---|
| 10 | |
|---|
| 11 | if ( $category->term_id != $default_cat_id ) |
|---|
| 12 | $edit .= "<td><a href='" . wp_nonce_url( "categories.php?action=delete&cat_ID=$category->term_id", 'delete-category_' . $category->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' )."</a>"; |
|---|