Don't use unavailable func. Props filosofo. fixes #4881
git-svn-id: https://develop.svn.wordpress.org/trunk@5997 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bd6534db40
commit
7cfadec3fa
@ -4,8 +4,8 @@ function get_bookmark($bookmark_id, $output = OBJECT, $filter = 'raw') {
|
||||
global $wpdb;
|
||||
|
||||
$bookmark_id = (int) $bookmark_id;
|
||||
$link = $wpdb->get_row("SELECT * FROM $wpdb->links WHERE link_id = '$bookmark_id'");
|
||||
$link->link_category = wp_get_link_cats($bookmark_id);
|
||||
$link = $wpdb->get_row("SELECT * FROM $wpdb->links WHERE link_id = '$bookmark_id' LIMIT 1");
|
||||
$link->link_category = array_unique( wp_get_object_terms($link_id, 'link_category', 'fields=ids') );
|
||||
|
||||
$link = sanitize_bookmark($link, $filter);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user