Return true when deleting link to satisfy admin-ajax error check. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5564 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ee5ec0c505
commit
ab1d417e55
|
@ -49,6 +49,8 @@ function wp_delete_link($link_id) {
|
|||
$wpdb->query("DELETE FROM $wpdb->links WHERE link_id = '$link_id'");
|
||||
|
||||
do_action('deleted_link', $link_id);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function wp_get_link_cats($link_id = 0) {
|
||||
|
|
Loading…
Reference in New Issue