Changeset 3771 for branches/2.0/wp-admin/post.php
- Timestamp:
- 05/11/2006 11:05:45 PM (20 years ago)
- File:
-
- 1 edited
-
branches/2.0/wp-admin/post.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-admin/post.php
r3737 r3771 31 31 switch($action) { 32 32 case 'post': 33 check_admin_referer( );33 check_admin_referer('add-post'); 34 34 35 35 $post_ID = write_post(); … … 88 88 89 89 case 'editattachment': 90 check_admin_referer();91 92 90 $post_id = (int) $_POST['post_ID']; 91 92 check_admin_referer('update-attachment' . $post_id); 93 93 94 94 // Don't let these be changed … … 106 106 107 107 case 'editpost': 108 check_admin_referer(); 108 $post_ID = (int) $_POST['post_ID']; 109 check_admin_referer('update-post' . $post_ID); 109 110 110 111 $post_ID = edit_post(); … … 131 132 132 133 case 'delete': 133 check_admin_referer();134 135 134 $post_id = (isset($_GET['post'])) ? intval($_GET['post']) : intval($_POST['post_ID']); 135 check_admin_referer('delete-post' . $post_id); 136 136 137 137 $post = & get_post($post_id); … … 213 213 214 214 case 'deletecomment': 215 216 check_admin_referer(); 217 218 $comment = (int) $_GET['comment']; 215 $comment = (int) $_GET['comment']; 216 check_admin_referer('delete-comment' . $comment); 217 219 218 $p = (int) $_GET['p']; 220 219 if (isset($_GET['noredir'])) { … … 244 243 245 244 case 'unapprovecomment': 246 247 check_admin_referer(); 248 249 $comment = (int) $_GET['comment']; 245 $comment = (int) $_GET['comment']; 246 check_admin_referer('unapprove-comment' . $comment); 247 250 248 $p = (int) $_GET['p']; 251 249 if (isset($_GET['noredir'])) { … … 272 270 273 271 case 'mailapprovecomment': 274 275 $comment = (int) $_GET['comment'];272 $comment = (int) $_GET['comment']; 273 check_admin_referer('approve-comment' . $comment); 276 274 277 275 if ( ! $comment = get_comment($comment) ) … … 292 290 293 291 case 'approvecomment': 294 295 check_admin_referer(); 296 297 $comment = (int) $_GET['comment']; 292 $comment = (int) $_GET['comment']; 293 check_admin_referer('approve-comment' . $comment); 294 298 295 $p = (int) $_GET['p']; 299 296 if (isset($_GET['noredir'])) { … … 325 322 case 'editedcomment': 326 323 327 check_admin_referer( );324 check_admin_referer('update-comment'); 328 325 329 326 edit_comment();
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)