mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-27 18:16:08 +00:00
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:
parent
dacaa7594f
commit
f5f583085a
@ -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 ?"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user