Changes from branches/2.3/wp-admin/link.php at r6256 to trunk/wp-admin/link.php at r5637
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/link.php
r6256 r5637 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.') );8 5 9 6 if ('' != $_POST['deletebookmarks']) … … 17 14 18 15 switch ($action) { 19 case 'deletebookmarks' :16 case 'deletebookmarks' : 20 17 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?')); 21 22 22 23 //for each link id (in $linkcheck[]) change category to selected value … … 41 42 check_admin_referer('bulk-bookmarks'); 42 43 44 // check the current user's level first. 45 if (!current_user_can('manage_links')) 46 wp_die(__('Cheatin’ uh?')); 47 43 48 //for each link id (in $linkcheck[]) change category to selected value 44 49 if (count($linkcheck) == 0) { … … 59 64 add_link(); 60 65 61 wp_redirect( wp_get_referer() . '?added=true');66 wp_redirect(wp_get_referer().'?added=true'); 62 67 exit; 63 68 break; … … 77 82 check_admin_referer('delete-bookmark_' . $link_id); 78 83 84 if (!current_user_can('manage_links')) 85 wp_die(__('Cheatin’ uh?')); 86 79 87 wp_delete_link($link_id); 80 88 … … 90 98 $submenu_file = 'link-manager.php'; 91 99 $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.')); 92 103 93 104 $link_id = (int) $_GET['link_id']; … … 96 107 wp_die(__('Link not found.')); 97 108 98 include_once ('admin-header.php');99 109 include ('edit-link-form.php'); 100 include ('admin-footer.php');101 110 break; 102 111 … … 104 113 break; 105 114 } 115 116 include ('admin-footer.php'); 106 117 ?>
Note: See TracChangeset
for help on using the changeset viewer.