Use wp_delete_link()

git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@3622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-03-06 18:49:49 +00:00
parent 5f17bc2a8c
commit cbad39d10b

View File

@ -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;