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/post.php

    r3771 r3805  
    9090    $post_id = (int) $_POST['post_ID'];
    9191
    92     check_admin_referer('update-attachment' . $post_id);
     92    check_admin_referer('update-attachment_' . $post_id);
    9393
    9494    // Don't let these be changed
     
    107107case 'editpost':
    108108    $post_ID = (int) $_POST['post_ID'];
    109     check_admin_referer('update-post' . $post_ID);
     109    check_admin_referer('update-post_' . $post_ID);
    110110   
    111111    $post_ID = edit_post();
     
    133133case 'delete':
    134134    $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);
    136136
    137137    $post = & get_post($post_id);
     
    214214case 'deletecomment':
    215215    $comment = (int) $_GET['comment'];
    216     check_admin_referer('delete-comment' . $comment);
     216    check_admin_referer('delete-comment_' . $comment);
    217217
    218218    $p = (int) $_GET['p'];
     
    244244case 'unapprovecomment':
    245245    $comment = (int) $_GET['comment'];
    246     check_admin_referer('unapprove-comment' . $comment);
     246    check_admin_referer('unapprove-comment_' . $comment);
    247247
    248248    $p = (int) $_GET['p'];
     
    271271case 'mailapprovecomment':
    272272    $comment = (int) $_GET['comment'];
    273     check_admin_referer('approve-comment' . $comment);
     273    check_admin_referer('approve-comment_' . $comment);
    274274
    275275    if ( ! $comment = get_comment($comment) )
     
    291291case 'approvecomment':
    292292    $comment = (int) $_GET['comment'];
    293     check_admin_referer('approve-comment' . $comment);
     293    check_admin_referer('approve-comment_' . $comment);
    294294
    295295    $p = (int) $_GET['p'];
Note: See TracChangeset for help on using the changeset viewer.