Make WordPress Core


Ignore:
Timestamp:
05/26/2006 11:08:05 PM (20 years ago)
Author:
ryan
Message:

Update nonce action strings. Props mdawaffe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/comment.php

    r3783 r3804  
    5252        $p = (int) $_GET['p'];
    5353        $formaction = 'confirmdeletecomment' == $action ? 'deletecomment' : 'approvecomment';
    54         $nonce_action = 'confirmdeletecomment' == $action ? 'delete-comment' : 'approve-comment';
     54        $nonce_action = 'confirmdeletecomment' == $action ? 'delete-comment_' : 'approve-comment_';
    5555        $nonce_action .= $comment;
    5656
    … …  
    9494case 'deletecomment':
    9595        $comment = (int) $_REQUEST['comment'];
    96         check_admin_referer('delete-comment' . $comment);
     96        check_admin_referer('delete-comment_' . $comment);
    9797
    9898        $p = (int) $_REQUEST['p'];
    … …  
    127127case 'unapprovecomment':
    128128        $comment = (int) $_GET['comment'];
    129         check_admin_referer('unapprove-comment' . $comment);
     129        check_admin_referer('unapprove-comment_' . $comment);
    130130       
    131131        $p = (int) $_GET['p'];
    … …  
    154154case 'approvecomment':
    155155        $comment = (int) $_GET['comment'];
    156         check_admin_referer('approve-comment' . $comment);
     156        check_admin_referer('approve-comment_' . $comment);
    157157
    158158        $p = (int) $_GET['p'];
Note: See TracChangeset for help on using the changeset viewer.