From 277e5aa914ca1febad8e85ab0e47c5ba67b37162 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 31 Aug 2007 22:36:16 +0000 Subject: [PATCH] Don't use unavailable func. Props filosofo. fixes #4881 git-svn-id: http://svn.automattic.com/wordpress/trunk@5997 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/bookmark.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/bookmark.php b/wp-includes/bookmark.php index bb851cfb89..0c108fac8c 100644 --- a/wp-includes/bookmark.php +++ b/wp-includes/bookmark.php @@ -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);