Make WordPress Core

Changeset 4271


Ignore:
Timestamp:
10/02/2006 09:14:22 PM (18 years ago)
Author:
markjaquith
Message:

Default cat deletion fix from westi (part 2). fixes #2789

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-admin/link-categories.php

    r4034 r4271  
    357357                <td><?php echo $row->list_limit ?></td>
    358358                <td><a href="link-categories.php?cat_id=<?php echo $row->cat_id?>&amp;action=Edit" class="edit"><?php _e('Edit') ?></a></td>
    359                 <td><a href="<?php echo wp_nonce_url("link-categories.php?cat_id=$row->cat_id?>&amp;action=Delete", 'delete-link-category_' . $row->cat_id) ?>" onclick="return deleteSomething( 'link category', <?php echo $row->cat_id . ", '" . sprintf(__("You are about to delete the &quot;%s&quot; link category.\\n&quot;Cancel&quot; to stop, &quot;OK&quot; to delete."), js_escape($row->cat_name)); ?>' );" class="delete"><?php _e('Delete') ?></a></td>
     359                <td>
     360                <?php if (1 == $row->cat_id ) {
     361                    _e('Default');
     362                } else { ?>
     363                    <a href="<?php echo wp_nonce_url("link-categories.php?cat_id=$row->cat_id?>&amp;action=Delete", 'delete-link-category_' . $row->cat_id) ?>" onclick="return deleteSomething( 'link category', <?php echo $row->cat_id . ", '" . sprintf(__("You are about to delete the &quot;%s&quot; link category.\\n&quot;Cancel&quot; to stop, &quot;OK&quot; to delete."), js_escape($row->cat_name)); ?>' );" class="delete"><?php _e('Delete') ?></a></td>
     364                <?php } ?>
    360365              </tr>
    361366<?php
Note: See TracChangeset for help on using the changeset viewer.