Opened 17 years ago
Closed 17 years ago
#5419 closed defect (bug) (fixed)
typo in variable in get_bookmark()
Reported by: |
|
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)
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [6353]) Use correct var. Props DD32. fixes #5419