Changeset 3764
- Timestamp:
- 05/05/2006 09:09:13 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/comment.php
r3759 r3764 52 52 $p = (int) $_GET['p']; 53 53 $formaction = 'confirmdeletecomment' == $action ? 'deletecomment' : 'approvecomment'; 54 $nonce_action = 'confirmdeletecomment' == $action ? 'delete-comment' : 'approve-comment'; 55 $nonce_action .= $comment; 54 56 55 57 if ( ! $comment = get_comment($comment) ) … … 75 77 76 78 echo "<form action='".get_settings('siteurl')."/wp-admin/comment.php' method='get'>\n"; 79 wp_nonce_field($nonce_action); 77 80 echo "<input type='hidden' name='action' value='$formaction' />\n"; 78 81 if ( 'spam' == $_GET['delete_type'] )
Note: See TracChangeset
for help on using the changeset viewer.