Ticket #5419 (closed defect: fixed)

Opened 9 months ago

Last modified 9 months ago

typo in variable in get_bookmark()

Reported by: DD32 Assigned to: anonymous
Priority: normal Milestone: 2.5
Component: Administration Version: 2.5
Severity: normal Keywords: has-patch
Cc:

Description

from wp-includes/bookmark.php:

	$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_id is undefined, I'm assuming this is supposed to be $link->link_id

As a result of this typo, Categories for links were not being returned with get_bookark()

Attachments

5419.typo-get_bookmark.diff (0.6 kB) - added by DD32 on 12/04/07 12:56:53.

Change History

12/04/07 12:56:53 changed by DD32

  • attachment 5419.typo-get_bookmark.diff added.

12/04/07 23:59:16 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [6353]) Use correct var. Props DD32. fixes #5419