mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 16:21:26 +01:00
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:
parent
3587a865c9
commit
1e0500a8e3
@ -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 = '') {
|
||||
|
Loading…
Reference in New Issue
Block a user