Changeset 3805 for branches/2.0/wp-admin/post.php
- Timestamp:
- 05/26/2006 11:31:24 PM (20 years ago)
- File:
-
- 1 edited
-
branches/2.0/wp-admin/post.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-admin/post.php
r3771 r3805 90 90 $post_id = (int) $_POST['post_ID']; 91 91 92 check_admin_referer('update-attachment ' . $post_id);92 check_admin_referer('update-attachment_' . $post_id); 93 93 94 94 // Don't let these be changed … … 107 107 case 'editpost': 108 108 $post_ID = (int) $_POST['post_ID']; 109 check_admin_referer('update-post ' . $post_ID);109 check_admin_referer('update-post_' . $post_ID); 110 110 111 111 $post_ID = edit_post(); … … 133 133 case 'delete': 134 134 $post_id = (isset($_GET['post'])) ? intval($_GET['post']) : intval($_POST['post_ID']); 135 check_admin_referer('delete-post ' . $post_id);135 check_admin_referer('delete-post_' . $post_id); 136 136 137 137 $post = & get_post($post_id); … … 214 214 case 'deletecomment': 215 215 $comment = (int) $_GET['comment']; 216 check_admin_referer('delete-comment ' . $comment);216 check_admin_referer('delete-comment_' . $comment); 217 217 218 218 $p = (int) $_GET['p']; … … 244 244 case 'unapprovecomment': 245 245 $comment = (int) $_GET['comment']; 246 check_admin_referer('unapprove-comment ' . $comment);246 check_admin_referer('unapprove-comment_' . $comment); 247 247 248 248 $p = (int) $_GET['p']; … … 271 271 case 'mailapprovecomment': 272 272 $comment = (int) $_GET['comment']; 273 check_admin_referer('approve-comment ' . $comment);273 check_admin_referer('approve-comment_' . $comment); 274 274 275 275 if ( ! $comment = get_comment($comment) ) … … 291 291 case 'approvecomment': 292 292 $comment = (int) $_GET['comment']; 293 check_admin_referer('approve-comment ' . $comment);293 check_admin_referer('approve-comment_' . $comment); 294 294 295 295 $p = (int) $_GET['p'];
Note: See TracChangeset
for help on using the changeset viewer.