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;
|
break;
|
||||||
} // end Save
|
} // end Save
|
||||||
|
|
||||||
case 'Delete':
|
case 'delete':
|
||||||
{
|
{
|
||||||
$link_id = (int) $_GET['link_id'];
|
$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') )
|
if ( !current_user_can('manage_links') )
|
||||||
die (__("Cheatin' uh ?"));
|
die (__("Cheatin' uh ?"));
|
||||||
|
|
Loading…
Reference in New Issue