mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Nonce from above. #2678
git-svn-id: https://develop.svn.wordpress.org/trunk@3759 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -29,7 +29,7 @@ $this_file = 'link-manager.php';
|
||||
|
||||
switch ($action) {
|
||||
case 'deletebookmarks' :
|
||||
check_admin_referer();
|
||||
check_admin_referer('bulk-bookmarks');
|
||||
|
||||
// check the current user's level first.
|
||||
if (!current_user_can('manage_links'))
|
||||
@@ -53,7 +53,7 @@ switch ($action) {
|
||||
break;
|
||||
|
||||
case 'move' :
|
||||
check_admin_referer();
|
||||
check_admin_referer('bulk-bookmarks');
|
||||
|
||||
// check the current user's level first.
|
||||
if (!current_user_can('manage_links'))
|
||||
@@ -72,7 +72,7 @@ switch ($action) {
|
||||
break;
|
||||
|
||||
case 'add' :
|
||||
check_admin_referer();
|
||||
check_admin_referer('add-bookmark');
|
||||
|
||||
add_link();
|
||||
|
||||
@@ -80,9 +80,9 @@ switch ($action) {
|
||||
break;
|
||||
|
||||
case 'save' :
|
||||
check_admin_referer();
|
||||
|
||||
$link_id = (int) $_POST['link_id'];
|
||||
check_admin_referer('update-bookmark' . $link_id);
|
||||
|
||||
edit_link($link_id);
|
||||
|
||||
wp_redirect($this_file);
|
||||
@@ -90,13 +90,12 @@ switch ($action) {
|
||||
break;
|
||||
|
||||
case 'delete' :
|
||||
check_admin_referer();
|
||||
$link_id = (int) $_GET['link_id'];
|
||||
check_admin_referer('delete-bookmark' . $link_id);
|
||||
|
||||
if (!current_user_can('manage_links'))
|
||||
die(__("Cheatin' uh ?"));
|
||||
|
||||
$link_id = (int) $_GET['link_id'];
|
||||
|
||||
wp_delete_link($link_id);
|
||||
|
||||
wp_redirect($this_file);
|
||||
|
||||
Reference in New Issue
Block a user