mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 16:21:26 +01:00
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:
parent
9a9521e01e
commit
95fe4f48bd
@ -4,7 +4,7 @@ function get_bookmark($bookmark_id, $output = OBJECT, $filter = 'raw') {
|
|||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
|
||||||
$link = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->links WHERE link_id = %d LIMIT 1", $bookmark_id));
|
$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);
|
$link = sanitize_bookmark($link, $filter);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user