Changeset 3771 for branches/2.0/wp-admin/categories.php
- Timestamp:
- 05/11/2006 11:05:45 PM (20 years ago)
- File:
-
- 1 edited
-
branches/2.0/wp-admin/categories.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-admin/categories.php
r3737 r3771 26 26 case 'addcat': 27 27 28 check_admin_referer( );28 check_admin_referer('add-category'); 29 29 30 30 if ( !current_user_can('manage_categories') ) … … 37 37 38 38 case 'delete': 39 40 check_admin_referer( );39 $cat_ID = (int) $_GET['cat_ID']; 40 check_admin_referer('delete-category' . $cat_ID); 41 41 42 42 if ( !current_user_can('manage_categories') ) 43 43 die (__('Cheatin’ uh?')); 44 44 45 $cat_ID = (int) $_GET['cat_ID'];46 45 $cat_name = get_catname($cat_ID); 47 46 … … 65 64 <h2><?php _e('Edit Category') ?></h2> 66 65 <form name="editcat" action="categories.php" method="post"> 66 <?php wp_nonce_field('update-category' . $category->cat_ID); ?> 67 67 <table class="editform" width="100%" cellspacing="2" cellpadding="5"> 68 68 <tr> … … 97 97 98 98 case 'editedcat': 99 check_admin_referer(); 99 $cat_ID = (int) $_POST['cat_ID']; 100 check_admin_referer('update-category' . $cat_ID); 100 101 101 102 if ( !current_user_can('manage_categories') ) … … 151 152 <h2><?php _e('Add New Category') ?></h2> 152 153 <form name="addcat" id="addcat" action="categories.php" method="post"> 153 154 <?php wp_nonce_field('add-category'); ?> 154 155 <p><?php _e('Name:') ?><br /> 155 156 <input type="text" name="cat_name" value="" /></p>
Note: See TracChangeset
for help on using the changeset viewer.