Make WordPress Core


Ignore:
Timestamp:
05/26/2006 11:31:24 PM (20 years ago)
Author:
ryan
Message:

Update nonce action strings. Props mdawaffe.

File:
1 edited

Legend:

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

    r3771 r3805  
    8484  {
    8585    $cat_id = (int) $_GET['cat_id'];
    86     check_admin_referer('delete-link-category' . $cat_id);
     86    check_admin_referer('delete-link-category_' . $cat_id);
    8787
    8888    $cat_name=get_linkcatname($cat_id);
     
    117117
    118118  <form name="editcat" method="post">
    119   <?php wp_nonce_field('update-link-category' . $row->cat_id) ?>
     119  <?php wp_nonce_field('update-link-category_' . $row->cat_id) ?>
    120120      <input type="hidden" name="action" value="editedcat" />
    121121      <input type="hidden" name="cat_id" value="<?php echo $row->cat_id ?>" />
     
    206206  {
    207207    $cat_id = (int)$_POST["cat_id"];
    208     check_admin_referer('update-link-category' . $cat_id);
     208    check_admin_referer('update-link-category_' . $cat_id);
    209209
    210210    if ( !current_user_can('manage_links') )
     
    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."), wp_specialchars($row->cat_name,1)); ?>' );" class="delete"><?php _e('Delete') ?></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."), wp_specialchars($row->cat_name,1)); ?>' );" class="delete"><?php _e('Delete') ?></a></td>
    360360              </tr>
    361361<?php
Note: See TracChangeset for help on using the changeset viewer.