Don't use unavailable func. Props filosofo. fixes #4881
git-svn-id: http://svn.automattic.com/wordpress/trunk@5997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c8d7b27ed2
commit
277e5aa914
|
@ -4,8 +4,8 @@ function get_bookmark($bookmark_id, $output = OBJECT, $filter = 'raw') {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
|
||||||
$bookmark_id = (int) $bookmark_id;
|
$bookmark_id = (int) $bookmark_id;
|
||||||
$link = $wpdb->get_row("SELECT * FROM $wpdb->links WHERE link_id = '$bookmark_id'");
|
$link = $wpdb->get_row("SELECT * FROM $wpdb->links WHERE link_id = '$bookmark_id' LIMIT 1");
|
||||||
$link->link_category = wp_get_link_cats($bookmark_id);
|
$link->link_category = array_unique( wp_get_object_terms($link_id, 'link_category', 'fields=ids') );
|
||||||
|
|
||||||
$link = sanitize_bookmark($link, $filter);
|
$link = sanitize_bookmark($link, $filter);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue