Changeset 6255
- Timestamp:
- 10/16/2007 04:09:01 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/link.php
r5637 r6255 3 3 4 4 wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image', 'description', 'visible', 'target', 'category', 'link_id', 'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel', 'notes', 'linkcheck[]')); 5 6 if ( ! current_user_can('manage_links') ) 7 wp_die( __('You do not have sufficient permissions to edit the links for this blog.') ); 5 8 6 9 if ('' != $_POST['deletebookmarks']) … … 14 17 15 18 switch ($action) { 16 19 case 'deletebookmarks' : 17 20 check_admin_referer('bulk-bookmarks'); 18 19 // check the current user's level first.20 if (!current_user_can('manage_links'))21 wp_die(__('Cheatin’ uh?'));22 21 23 22 //for each link id (in $linkcheck[]) change category to selected value … … 42 41 check_admin_referer('bulk-bookmarks'); 43 42 44 // check the current user's level first.45 if (!current_user_can('manage_links'))46 wp_die(__('Cheatin’ uh?'));47 48 43 //for each link id (in $linkcheck[]) change category to selected value 49 44 if (count($linkcheck) == 0) { … … 64 59 add_link(); 65 60 66 wp_redirect( wp_get_referer().'?added=true');61 wp_redirect( wp_get_referer() . '?added=true' ); 67 62 exit; 68 63 break; … … 82 77 check_admin_referer('delete-bookmark_' . $link_id); 83 78 84 if (!current_user_can('manage_links'))85 wp_die(__('Cheatin’ uh?'));86 87 79 wp_delete_link($link_id); 88 80 … … 98 90 $submenu_file = 'link-manager.php'; 99 91 $title = __('Edit Link'); 100 include_once ('admin-header.php');101 if (!current_user_can('manage_links'))102 wp_die(__('You do not have sufficient permissions to edit the links for this blog.'));103 92 104 93 $link_id = (int) $_GET['link_id']; … … 107 96 wp_die(__('Link not found.')); 108 97 98 include_once ('admin-header.php'); 109 99 include ('edit-link-form.php'); 100 include ('admin-footer.php'); 110 101 break; 111 102 … … 113 104 break; 114 105 } 115 116 include ('admin-footer.php');117 106 ?>
Note: See TracChangeset
for help on using the changeset viewer.