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
This commit is contained in:
parent
99aba2a91c
commit
8a155e75f5
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue