[wp-trac] [WordPress Trac] #20129: get_bookmark object should return array of categories

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 28 02:17:32 UTC 2012


#20129: get_bookmark object should return array of categories
--------------------------+-----------------------------
 Reporter:  andrewheins   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:  3.3.1
 Severity:  minor         |   Keywords:
--------------------------+-----------------------------
 get_bookmark() returns a bookmark object with a single taxonomy and
 term_id, which are returned as strings.

 In the WordPress admin section, it's possible to select multiple
 categories for a link (or bookmark, as it were).

 get_bookmark() currently pulls all bookmarks for the categories you
 choose, and then runs array_unique on them to weed out duplicates. You
 only wind up with whatever the first category it pulled from.

 It would be more consistent to merge those duplicate links, creating an
 array of term_ids for that bookmark, and allowing the developer to pull
 all of the terms for that bookmark.

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


More information about the wp-trac mailing list