From cbad39d10b8df103d421870436f092ac3f176da1 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 6 Mar 2006 18:49:49 +0000 Subject: [PATCH] Use wp_delete_link() git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@3622 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/list-manipulation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/list-manipulation.php b/wp-admin/list-manipulation.php index 308089fc36..90604bd4ee 100644 --- a/wp-admin/list-manipulation.php +++ b/wp-admin/list-manipulation.php @@ -23,7 +23,7 @@ case 'delete-link' : if ( !current_user_can('manage_links') ) die ('-1'); - if ( $wpdb->query("DELETE FROM $wpdb->links WHERE link_id = '$id'") ) + if ( wp_delete_link($id) ) die('1'); else die('0'); break;