Add delete_link action. fixes #1926

git-svn-id: http://svn.automattic.com/wordpress/trunk@3175 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-11-21 08:06:18 +00:00
parent 3587a865c9
commit 1e0500a8e3
1 changed files with 2 additions and 1 deletions

View File

@ -323,7 +323,8 @@ function wp_update_link($linkdata) {
function wp_delete_link($link_id) {
global $wpdb;
return $wpdb->query("DELETE FROM $wpdb->links WHERE link_id = '$link_id'");
do_action('delete_link', $link_id);
return $wpdb->query("DELETE FROM $wpdb->links WHERE link_id = '$link_id'");
}
function post_exists($title, $content = '', $post_date = '') {