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

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 28 04:26:22 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              |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by solarissmoke):

 * keywords:   => reporter-feedback


Comment:

 Can you post a code example showing actual vs expected output? From what I
 can see, the function already returns an array of category IDs, which
 seems to be what you want:

 {{{
 array (
   'link_id' => 1,
   'link_url' => 'http://codex.wordpress.org/',
   'link_name' => 'Documentation',
   'link_image' => '',
   'link_target' => '',
   'link_description' => '',
   'link_visible' => 'Y',
   'link_owner' => '1',
   'link_rating' => 0,
   'link_updated' => '0000-00-00 00:00:00',
   'link_rel' => '',
   'link_notes' => '',
   'link_rss' => '',
   'link_category' =>
   array (
     0 => 2,
     1 => 12,
     2 => 15
   ),
 )
 }}}

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


More information about the wp-trac mailing list