Opened 19 years ago
Closed 19 years ago
#5419 closed defect (bug) (fixed)
typo in variable in get_bookmark()
| Reported by: | DD32 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.5 |
| Component: | Administration | Version: | 2.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [6353]) Use correct var. Props DD32. fixes #5419