From 8a155e75f57412f670fffd571fe01ffff112acba Mon Sep 17 00:00:00 2001 From: rob1n Date: Wed, 4 Apr 2007 04:25:44 +0000 Subject: [PATCH] Add exit hook to wp_delete_link(). Props kevinB. fixes #4078 git-svn-id: https://develop.svn.wordpress.org/trunk@5177 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin-db.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-admin/admin-db.php b/wp-admin/admin-db.php index bbd28ba3d9..fa9a0344c6 100644 --- a/wp-admin/admin-db.php +++ b/wp-admin/admin-db.php @@ -424,6 +424,8 @@ function wp_delete_link($link_id) { $wpdb->query("DELETE FROM $wpdb->link2cat WHERE link_id = '$link_id'"); return $wpdb->query("DELETE FROM $wpdb->links WHERE link_id = '$link_id'"); + + do_action('deleted_link', $link_id); } function wp_get_link_cats($link_ID = 0) {