X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/fa11948979fd6a4ea5705dc613b239699a459db3..e3ff8f35458a959c1879c0a4976701ed8dcfe651:/wp-admin/link.php diff --git a/wp-admin/link.php b/wp-admin/link.php index 1b27ce7d..bcfe578f 100644 --- a/wp-admin/link.php +++ b/wp-admin/link.php @@ -3,7 +3,7 @@ * Manage link administration actions. * * This page is accessed by the link management pages and handles the forms and - * AJAX processes for link actions. + * Ajax processes for link actions. * * @package WordPress * @subpackage Administration @@ -30,7 +30,7 @@ switch ($action) { case 'deletebookmarks' : check_admin_referer('bulk-bookmarks'); - //for each link id (in $linkcheck[]) change category to selected value + // For each link id (in $linkcheck[]) change category to selected value. if (count($linkcheck) == 0) { wp_redirect($this_file); exit; @@ -46,23 +46,23 @@ switch ($action) { wp_redirect("$this_file?deleted=$deleted"); exit; - break; case 'move' : check_admin_referer('bulk-bookmarks'); - //for each link id (in $linkcheck[]) change category to selected value + // For each link id (in $linkcheck[]) change category to selected value. if (count($linkcheck) == 0) { wp_redirect($this_file); exit; } $all_links = join(',', $linkcheck); - // should now have an array of links we can change - //$q = $wpdb->query("update $wpdb->links SET link_category='$category' WHERE link_id IN ($all_links)"); + /* + * Should now have an array of links we can change: + * $q = $wpdb->query("update $wpdb->links SET link_category='$category' WHERE link_id IN ($all_links)"); + */ wp_redirect($this_file); exit; - break; case 'add' : check_admin_referer('add-bookmark'); @@ -73,7 +73,6 @@ switch ($action) { wp_redirect( $redir ); exit; - break; case 'save' : $link_id = (int) $_POST['link_id']; @@ -83,7 +82,6 @@ switch ($action) { wp_redirect($this_file); exit; - break; case 'delete' : $link_id = (int) $_GET['link_id']; @@ -93,7 +91,6 @@ switch ($action) { wp_redirect($this_file); exit; - break; case 'edit' : wp_enqueue_script('link');