[wp-trac] [WordPress Trac] #5419: typo in variable in get_bookmark()

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 4 12:55:22 GMT 2007


#5419: typo in variable in get_bookmark()
----------------------------+-----------------------------------------------
 Reporter:  DD32            |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:  2.4      
Component:  Administration  |     Version:  2.4      
 Severity:  normal          |    Keywords:  has-patch
----------------------------+-----------------------------------------------
 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()

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5419>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list