diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-11-24 16:16:44 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-11-24 16:16:44 +0000 |
commit | 600b71019494e1c29898a620e58c0d2602f37b74 (patch) | |
tree | 21181d77ad4ebbcd42cd883e509c08a568d29514 /wp-admin/link.php | |
parent | 7935d0bd9ef23d32ae29a95bd6c3ea0b6eab2973 (diff) | |
download | wordpress-mu-600b71019494e1c29898a620e58c0d2602f37b74.tar.gz wordpress-mu-600b71019494e1c29898a620e58c0d2602f37b74.tar.xz wordpress-mu-600b71019494e1c29898a620e58c0d2602f37b74.zip |
WP Merge to 4524
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@810 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/link.php')
-rw-r--r-- | wp-admin/link.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/wp-admin/link.php b/wp-admin/link.php index 0590f16..425e912 100644 --- a/wp-admin/link.php +++ b/wp-admin/link.php @@ -29,12 +29,13 @@ switch ($action) { $deleted = 0; foreach ($linkcheck as $link_id) { $link_id = (int) $link_id; - + if ( wp_delete_link($link_id) ) $deleted++; } wp_redirect("$this_file?deleted=$deleted"); + exit; break; case 'move' : @@ -54,6 +55,7 @@ switch ($action) { //$q = $wpdb->query("update $wpdb->links SET link_category='$category' WHERE link_id IN ($all_links)"); wp_redirect($this_file); + exit; break; case 'add' : @@ -62,6 +64,7 @@ switch ($action) { add_link(); wp_redirect(wp_get_referer().'?added=true'); + exit; break; case 'save' : @@ -84,6 +87,7 @@ switch ($action) { wp_delete_link($link_id); wp_redirect($this_file); + exit; break; case 'edit' : @@ -92,10 +96,10 @@ switch ($action) { wp_enqueue_script( 'ajaxcat' ); $parent_file = 'link-manager.php'; $submenu_file = 'link-manager.php'; - $title = __('Edit Bookmark'); + $title = __('Edit Link'); include_once ('admin-header.php'); if (!current_user_can('manage_links')) - wp_die(__('You do not have sufficient permissions to edit the bookmarks for this blog.')); + wp_die(__('You do not have sufficient permissions to edit the links for this blog.')); $link_id = (int) $_GET['link_id']; |