Use correct var. Props DD32. fixes #5419

git-svn-id: http://svn.automattic.com/wordpress/trunk@6353 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-12-04 23:59:16 +00:00
parent 9a9521e01e
commit 95fe4f48bd
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ function get_bookmark($bookmark_id, $output = OBJECT, $filter = 'raw') {
global $wpdb;
$link = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->links WHERE link_id = %d LIMIT 1", $bookmark_id));
$link->link_category = array_unique( wp_get_object_terms($link_id, 'link_category', 'fields=ids') );
$link->link_category = array_unique( wp_get_object_terms($link->link_id, 'link_category', 'fields=ids') );
$link = sanitize_bookmark($link, $filter);