Changeset 3771 for branches/2.0/wp-admin/link-categories.php
- Timestamp:
- 05/11/2006 11:05:45 PM (20 years ago)
- File:
-
- 1 edited
-
branches/2.0/wp-admin/link-categories.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-admin/link-categories.php
r3737 r3771 27 27 case 'addcat': 28 28 { 29 check_admin_referer( );29 check_admin_referer('add-link-category'); 30 30 31 31 if ( !current_user_can('manage_links') ) … … 83 83 case 'Delete': 84 84 { 85 check_admin_referer();86 87 $cat_id = (int) $_GET['cat_id']; 85 $cat_id = (int) $_GET['cat_id']; 86 check_admin_referer('delete-link-category' . $cat_id); 87 88 88 $cat_name=get_linkcatname($cat_id); 89 89 … … 117 117 118 118 <form name="editcat" method="post"> 119 <?php wp_nonce_field('update-link-category' . $row->cat_id) ?> 119 120 <input type="hidden" name="action" value="editedcat" /> 120 121 <input type="hidden" name="cat_id" value="<?php echo $row->cat_id ?>" /> … … 204 205 case "editedcat": 205 206 { 206 check_admin_referer(); 207 $cat_id = (int)$_POST["cat_id"]; 208 check_admin_referer('update-link-category' . $cat_id); 207 209 208 210 if ( !current_user_can('manage_links') ) … … 211 213 $submit=$_POST["submit"]; 212 214 if (isset($submit)) { 213 214 $cat_id = (int)$_POST["cat_id"];215 215 216 216 $cat_name= wp_specialchars($_POST["cat_name"]); … … 357 357 <td><?php echo $row->list_limit ?></td> 358 358 <td><a href="link-categories.php?cat_id=<?php echo $row->cat_id?>&action=Edit" class="edit"><?php _e('Edit') ?></a></td> 359 <td><a href=" link-categories.php?cat_id=<?php echo $row->cat_id?>&action=Delete"onclick="return deleteSomething( 'link category', <?php echo $row->cat_id . ", '" . sprintf(__("You are about to delete the "%s" link category.\\n"Cancel" to stop, "OK" 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?>&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 "%s" link category.\\n"Cancel" to stop, "OK" to delete."), wp_specialchars($row->cat_name,1)); ?>' );" class="delete"><?php _e('Delete') ?></a></td> 360 360 </tr> 361 361 <?php … … 372 372 <div class="wrap"> 373 373 <form name="addcat" method="post"> 374 <?php wp_nonce_field('add-link-category'); ?> 374 375 <input type="hidden" name="action" value="addcat" /> 375 376 <h2><?php _e('Add a Link Category:') ?></h2>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)