Delete bookmark nonce fix from westi and markjaquith. fixes #2806

git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@3858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-06-09 01:05:51 +00:00
parent dacaa7594f
commit f5f583085a
1 changed files with 2 additions and 2 deletions

View File

@ -154,10 +154,10 @@ switch ($action) {
break;
} // end Save
case 'Delete':
case 'delete':
{
$link_id = (int) $_GET['link_id'];
check_admin_referer('delete-bookmark' . $link_id);
check_admin_referer('delete-bookmark_' . $link_id);
if ( !current_user_can('manage_links') )
die (__("Cheatin' uh ?"));