Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#5419 closed defect (bug) (fixed)

typo in variable in get_bookmark()

Reported by: dd32's profile DD32 Owned by:
Milestone: 2.5 Priority: normal
Severity: normal Version: 2.5
Component: Administration Keywords: has-patch
Focuses: 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 (1)

5419.typo-get_bookmark.diff (602 bytes) - added by DD32 17 years ago.

Download all attachments as: .zip

Change History (2)

#1 @ryan
17 years ago

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.